diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-01 17:58:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-01 17:58:57 +0200 |
| commit | 69cf347932ce8422582e380636ee254ca4a3d760 (patch) | |
| tree | 3b7aac319164abb85969ab51fe5e106fafc4b675 | |
| parent | d7038688165b24bbb41002f59322ae69418046cc (diff) | |
| download | python-apt-69cf347932ce8422582e380636ee254ca4a3d760.tar.gz | |
utils/get_debian_mirrors.py: ignore mirrors without a county
| -rwxr-xr-x | utils/get_debian_mirrors.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/get_debian_mirrors.py b/utils/get_debian_mirrors.py index 395c21da..9fb4dd37 100755 --- a/utils/get_debian_mirrors.py +++ b/utils/get_debian_mirrors.py @@ -26,6 +26,8 @@ masterlist = urllib2.urlopen("http://cvs.debian.org/webwml/webwml/english/" "mirror/Mirrors.masterlist?revision=HEAD") for mirror in deb822.Deb822.iter_paragraphs(masterlist): + if not "Country" in mirror: + continue country = mirror["Country"].split(None, 1)[0] site = mirror["Site"] for proto in 'http', 'ftp': |
