Convert stat mtime to int so comparison can work, --update, BZ 553030
authorDennis Gregorovic <dgregor@redhat.com>
Thu, 7 Jan 2010 05:11:14 +0000 (00:11 -0500)
committerJames Antill <james@and.org>
Thu, 7 Jan 2010 05:11:14 +0000 (00:11 -0500)
createrepo/readMetadata.py

index 285e54dd66c6459f15502ab5eadceca6d24b5c91..6a5055e62a9e007f2501b499555c5ba081197c07 100644 (file)
@@ -132,7 +132,7 @@ class MetadataIndex(object):
                 #ignore non files
                 return
             #check size and mtime
-            if st.st_size != size:
+            if int(st.st_size) != size:
                 if self.opts.get('verbose'):
                     print _("Size (%i -> %i) changed for file %s") % (size,st.st_size,filepath)
                 return