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

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