Always try and find the mirror site, even if no updated files have been saved.
authorCameron Dale <camrdale@gmail.com>
Thu, 17 Apr 2008 19:58:59 +0000 (12:58 -0700)
committerCameron Dale <camrdale@gmail.com>
Thu, 17 Apr 2008 19:58:59 +0000 (12:58 -0700)
apt_p2p/MirrorManager.py

index 301c0db..f91db76 100644 (file)
@@ -109,6 +109,7 @@ class MirrorManager:
         @return: a deferred that will fire with the returned L{Hash.HashObject}
         """
         site, baseDir, path = self.extractPath(url)
+        self.init(site, baseDir)
         if site in self.apt_caches and baseDir in self.apt_caches[site]:
             return self.apt_caches[site][baseDir].findHash(path)
         return defer.fail(MirrorError("Site Not Found"))