[Rpm-metadata] createrepo/readMetadata.py
James Antill
james at osuosl.org
Thu Jan 7 16:50:45 UTC 2010
createrepo/readMetadata.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0bf9a7f48786810515d4b530b91cb2bbd01a391c
Author: Dennis Gregorovic <dgregor at redhat.com>
Date: Thu Jan 7 11:50:37 2010 -0500
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
More information about the Rpm-metadata
mailing list