diff options
| author | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-27 10:42:24 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-27 10:42:24 +0100 |
| commit | 21a2e05e903ace1ba6ac977811074146973fb4f4 (patch) | |
| tree | d3a2fb8cc866a002ff5c86417e9ad4f9b94cbaf9 /AptSources | |
| parent | 72111ff6895a6df7103a1959cc44900e7c419ff1 (diff) | |
| download | python-apt-21a2e05e903ace1ba6ac977811074146973fb4f4.tar.gz | |
* use a default value for distro.country (caused an exception in Debian)
Diffstat (limited to 'AptSources')
| -rw-r--r-- | AptSources/aptsources.py | 3 |
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: |
