From 21a2e05e903ace1ba6ac977811074146973fb4f4 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Mon, 27 Nov 2006 10:42:24 +0100 Subject: * use a default value for distro.country (caused an exception in Debian) --- AptSources/aptsources.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'AptSources') 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: -- cgit v1.2.3