blob: d34eb56a8e79acc2db1cc9eacc3edda51b4a9e21 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001When reading the mtime from disk, the system can get a floating point
2value. Convert this to an int for comparision purposes, else some
3packages always get reindexed as the value in the index is an int.
4RP 2016/3/2
5Upstream-Status: Pending
6
7Index: createrepo-0.4.11/readMetadata.py
8===================================================================
9--- createrepo-0.4.11.orig/readMetadata.py
10+++ createrepo-0.4.11/readMetadata.py
11@@ -126,7 +126,7 @@ class MetadataIndex(object):
12 if self.opts.get('verbose'):
13 print _("Size (%i -> %i) changed for file %s") % (size,st.st_size,filepath)
14 return
15- if st.st_mtime != mtime:
16+ if int(st.st_mtime) != mtime:
17 if self.opts.get('verbose'):
18 print _("Modification time changed for %s") % filepath
19 return