summaryrefslogtreecommitdiff
path: root/AptSources
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-laptop>2006-11-27 11:04:15 +0100
committerSebastian Heinlein <sebi@sebi-laptop>2006-11-27 11:04:15 +0100
commite3547525458890ccb6067b9e0d830cae25d6e8e2 (patch)
treed3a2fb8cc866a002ff5c86417e9ad4f9b94cbaf9 /AptSources
parent48c981db5adea85ed38acf7fca0e63f5ae5b1b97 (diff)
parent21a2e05e903ace1ba6ac977811074146973fb4f4 (diff)
downloadpython-apt-e3547525458890ccb6067b9e0d830cae25d6e8e2.tar.gz
* merge with debian branch
Diffstat (limited to 'AptSources')
-rw-r--r--AptSources/aptsources.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/AptSources/aptsources.py b/AptSources/aptsources.py
index 713b0ff8..e29114e1 100644
--- a/AptSources/aptsources.py
+++ b/AptSources/aptsources.py
@@ -543,6 +543,7 @@ class Distribution:
# try to guess the nearest mirror from the locale
# FIXME: for debian we need something different
+ self.country = None
if self.id == "Ubuntu":
locale = os.getenv("LANG", default="en.UK")
a = locale.find("_")
@@ -554,8 +555,6 @@ class Distribution:
country_code
if self.countries.has_key(country_code):
self.country = self.countries[country_code]
- else:
- self.country = None
# other used servers
for medium in self.used_media: