summaryrefslogtreecommitdiff
path: root/AptSources
diff options
context:
space:
mode:
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: