]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht/apt_dht.py
Added modification time tracking to the MirrorManager cache.
[quix0rs-apt-p2p.git] / apt_dht / apt_dht.py
index 2e55d8e05a0c29bc554e2e5390045a189a157e9e..e9b5df30a8928e45cc60ea257676a43ed540c49b 100644 (file)
@@ -21,14 +21,14 @@ class AptDHT:
         return self.http_site
     
     def check_freshness(self, path, modtime, resp):
-        log.msg('Checking if %s is still fresh: %r' % (path, modtime))
+        log.msg('Checking if %s is still fresh' % path)
         d = self.peers.get([path], "HEAD", modtime)
         d.addCallback(self.check_freshness_done, path, resp)
         return d
     
     def check_freshness_done(self, resp, path, orig_resp):
-        if resp.code == "304":
-            log.msg('Still fresh: %s' % path)
+        if resp.code == 304:
+            log.msg('Still fresh, returning: %s' % path)
             return orig_resp
         else:
             log.msg('Stale, need to redownload: %s' % path)