summaryrefslogtreecommitdiff
path: root/AptSources/aptsources.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-laptop>2006-12-09 10:58:11 +0100
committerSebastian Heinlein <sebi@sebi-laptop>2006-12-09 10:58:11 +0100
commit38491fe36963dceff062c38e298bcfedcae0ea56 (patch)
tree4e64fb9757f00b268a93f156acb6265432e851b4 /AptSources/aptsources.py
parent6fb979e6dfbb457bd8f99db32d43dda5f3f23c9a (diff)
downloadpython-apt-38491fe36963dceff062c38e298bcfedcae0ea56.tar.gz
* fix a bug where no country could be detected
Diffstat (limited to 'AptSources/aptsources.py')
-rw-r--r--AptSources/aptsources.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/AptSources/aptsources.py b/AptSources/aptsources.py
index 2fd4b845..646a92ac 100644
--- a/AptSources/aptsources.py
+++ b/AptSources/aptsources.py
@@ -751,6 +751,7 @@ class UbuntuDistribution(Distribution):
def get_mirror_name(server):
''' Try to get a human readable name for the main mirror of a country'''
+ country = None
i = server.find("://")
l = server.find(".archive.ubuntu.com")
if i != -1 and l != -1: