From: Dennis Gregorovic Date: Thu, 7 Jan 2010 16:50:37 +0000 (-0500) Subject: Fixed, convert stat mtime to int so comparison can work, --update, BZ 553030 X-Git-Tag: upstream/0.9.9~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf9a7f48786810515d4b530b91cb2bbd01a391c;p=tools%2Fcreaterepo.git Fixed, convert stat mtime to int so comparison can work, --update, BZ 553030 --- diff --git a/createrepo/readMetadata.py b/createrepo/readMetadata.py index 6a5055e..6711d30 100644 --- a/createrepo/readMetadata.py +++ b/createrepo/readMetadata.py @@ -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