diff options
| author | Sebastian Heinlein <sebi@sebi-laptop> | 2007-01-04 19:10:59 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-laptop> | 2007-01-04 19:10:59 +0100 |
| commit | 5d6c346b7b746c7f502d719f1007eacc63699cf6 (patch) | |
| tree | 85ad485bf896dc4b9479d81e37ea6dfed9ff227b /utils | |
| parent | a23e254c5fe051ecbb8b9f3f6ef94025be7efa72 (diff) | |
| download | python-apt-5d6c346b7b746c7f502d719f1007eacc63699cf6.tar.gz | |
* use uppercase letters for the country code
* change description of the lp mirror fetch tool
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/get_debian_mirrors.py | 2 | ||||
| -rwxr-xr-x | utils/get_ubuntu_lp_mirrors.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/utils/get_debian_mirrors.py b/utils/get_debian_mirrors.py index f722e82d..ccddf8ed 100755 --- a/utils/get_debian_mirrors.py +++ b/utils/get_debian_mirrors.py @@ -51,7 +51,7 @@ try: if line.startswith('<strong><a name="'): location = match_location.sub(r"\1", line) if location: - mirrors.append("#LOC:%s" % location.lower()) + mirrors.append("#LOC:%s" % location) if line.startswith("Site:"): sites = line[6:-1].split(",") elif line.startswith('Packages over HTTP'): diff --git a/utils/get_ubuntu_lp_mirrors.py b/utils/get_ubuntu_lp_mirrors.py index b91ae533..fad495b5 100755 --- a/utils/get_ubuntu_lp_mirrors.py +++ b/utils/get_ubuntu_lp_mirrors.py @@ -1,9 +1,9 @@ #!/usr/bin/env python # -# get_ubuntu_mirrors.py +# get_ubuntu_lp_mirrors.py # -# Download the latest list with available mirrors from the Ubuntu -# wiki and extract the hosts from the raw page +# Download the latest list with available Ubuntu mirrors from Launchpad.net +# and extract the hosts from the raw page # # Copyright (c) 2006 Free Software Foundation Europe # @@ -70,7 +70,7 @@ def find(split): urls = re.findall(r'<a href="(?![a-zA-Z:/_\-]+launchpad.+?">)(.+?)">', split) if countries.has_key(country.group(1)): - lines.append("#LOC:%s" % countries[country.group(1)]) + lines.append("#LOC:%s" % countries[country.group(1)].upper()) else: lines.append("#LOC:%s" % country.group(1)) map(lines.append, urls) |
