[apt-proxy-devel] r679 - trunk/apt_proxy

Chris Halls halls at alioth.debian.org
Tue Feb 5 19:00:54 UTC 2008


Author: halls
Date: Tue Feb  5 19:00:54 2008
New Revision: 679

Log:
Output cache entry state when it exists


Modified:
   trunk/apt_proxy/apt_proxy.py

Modified: trunk/apt_proxy/apt_proxy.py
==============================================================================
--- trunk/apt_proxy/apt_proxy.py	(original)
+++ trunk/apt_proxy/apt_proxy.py	Tue Feb  5 19:00:54 2008
@@ -101,8 +101,9 @@
         a new object is created if it does not already exist
         """
         if self.entries.has_key(path):
-            log.debug("Cache entry exists: %s, %s entries" %(path,len(self.entries)))
-            return self.entries[path]
+            c = self.entries[path]
+            log.debug("Cache entry exists: %s, %s entries, state: %s" %(path,len(self.entries), c.stateToString()))
+            return c
         else:
             log.debug("New Cache entry: "+path)
             e = cache.CacheEntry(self, path)



More information about the apt-proxy-devel mailing list