[mirrorbrain-commits] r7881 - /trunk/tools/metalink-hasher.py

From: <poeml_at_mirrorbrain.org>
Date: Mon, 30 Nov 2009 14:47:44 -0000
Author: poeml
Date: Mon Nov 30 15:47:42 2009
New Revision: 7881

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7881&view=rev
Log:
metalink-hasher:
- when comparing the modification time of a saved metalink hash with that of a
  source file, only compare the int() portion (fixing issue #24)

Modified:
    trunk/tools/metalink-hasher.py

Modified: trunk/tools/metalink-hasher.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/metalink-hasher.py?rev=7881&r1=7880&r2=7881&view=diff
==============================================================================
--- trunk/tools/metalink-hasher.py (original)
+++ trunk/tools/metalink-hasher.py Mon Nov 30 15:47:42 2009
@@ -100,7 +100,7 @@
         except OSError:
             dst_mtime = dst_size = 0 # file missing
 
-        if dst_mtime == self.mtime and dst_size != 0:
+        if int(dst_mtime) == int(self.mtime) and dst_size != 0:
             if verbose:
                 print 'Up to date: %r' % self.dst
             return 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Mon Nov 30 2009 - 14:47:45 GMT

This archive was generated by hypermail 2.2.0 : Mon Nov 30 2009 - 15:45:10 GMT