r378 - /debtorrent/trunk/hippy.py

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Wed May 21 16:50:53 UTC 2008


Author: camrdale-guest
Date: Wed May 21 16:50:53 2008
New Revision: 378

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=378
Log:
hippy prints the missing file hashes in sorted order

Modified:
    debtorrent/trunk/hippy.py

Modified: debtorrent/trunk/hippy.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/hippy.py?rev=378&op=diff
==============================================================================
--- debtorrent/trunk/hippy.py (original)
+++ debtorrent/trunk/hippy.py Wed May 21 16:50:53 2008
@@ -276,11 +276,13 @@
 
             # Save the file to the new list
             new_debs[filename] = 0
-            
-    sys.stderr.write('    Have %d missing old files\n' % len(old_debs))
+
+    missing_files = old_debs.keys()            
+    sys.stderr.write('    Have %d missing old files\n' % len(missing_files))
+    missing_files.sort()
         
     # Also print any unexpired old entries
-    for missing_file in old_debs:
+    for missing_file in missing_files:
         # Expire entries after they have been missing for MAX_AGE runs
         if old_debs[missing_file] >= MAX_AGE:
             sys.stderr.write('        Expired: %s\n' % missing_file)




More information about the Debtorrent-commits mailing list