From: Cameron Dale Date: Thu, 17 Apr 2008 19:58:59 +0000 (-0700) Subject: Always try and find the mirror site, even if no updated files have been saved. X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=commitdiff_plain;h=9e2330b33ce38f0000dfbccb8b39495799d9bfd2 Always try and find the mirror site, even if no updated files have been saved. --- diff --git a/apt_p2p/MirrorManager.py b/apt_p2p/MirrorManager.py index 301c0db..f91db76 100644 --- a/apt_p2p/MirrorManager.py +++ b/apt_p2p/MirrorManager.py @@ -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"))