Repository :
http://git.fedorahosted.org/cgit/
On branch : v1.4
---------------------------------------------------------------
commit c2c89ace0840178bd217c83dcc07abd1c692e6a3
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Wed Jul 3 13:20:03 2013 -0500
netblock_country_cache key should be an IP() object, not a string
the other such caches put an IP object here, so mirrorlist_server.py
expects it to be such, and tracebacks loading the cache otherwise.
---------------------------------------------------------------
server/mirrormanager/mirrorlist.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/mirrormanager/mirrorlist.py b/server/mirrormanager/mirrorlist.py
index 09c391e..b869ce0 100644
--- a/server/mirrormanager/mirrorlist.py
+++ b/server/mirrormanager/mirrorlist.py
@@ -287,7 +287,7 @@ def netblock_country_cache():
except:
continue
# guaranteed to be unique by database constraints
- cache[ip.strNormal()] = (n.country)
+ cache[ip] = (n.country)
return cache