[or-cvs] r17296: {updater} Try to fix timestamp generation with bundles. (updater/trunk/lib/thandy)

nickm at seul.org nickm at seul.org
Sun Nov 16 23:30:14 UTC 2008


Author: nickm
Date: 2008-11-16 18:30:12 -0500 (Sun, 16 Nov 2008)
New Revision: 17296

Modified:
   updater/trunk/lib/thandy/ServerCLI.py
Log:
Try to fix timestamp generation with bundles.

Modified: updater/trunk/lib/thandy/ServerCLI.py
===================================================================
--- updater/trunk/lib/thandy/ServerCLI.py	2008-11-16 22:47:01 UTC (rev 17295)
+++ updater/trunk/lib/thandy/ServerCLI.py	2008-11-16 23:30:12 UTC (rev 17296)
@@ -142,9 +142,10 @@
     bundles = []
     for dirpath, dirname, fns in os.walk(os.path.join(repo, "bundleinfo")):
         for fn in fns:
+            fn = os.path.join(dirpath, fn)
             try:
                 bObj = snarfObj(fn)
-            except (ValueError, OSError), e:
+            except (ValueError, OSError, IOError), e:
                 print "(Couldn't read bundle-like %s)"%fn
                 continue
             try:



More information about the tor-commits mailing list