From 38491fe36963dceff062c38e298bcfedcae0ea56 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Sat, 9 Dec 2006 10:58:11 +0100 Subject: * fix a bug where no country could be detected --- AptSources/aptsources.py | 1 + 1 file changed, 1 insertion(+) (limited to 'AptSources/aptsources.py') 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: -- cgit v1.2.3