[Rpm-metadata] createrepo/__init__.py

James Antill james at osuosl.org
Fri Dec 6 18:14:53 UTC 2013


 createrepo/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d4e7c7eeae9bb5ffc425dfdb852529f59dced000
Author: James Antill <james at and.org>
Date:   Fri Dec 6 13:14:39 2013 -0500

    Add missing int() on mtime that I could find.

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 5ede16c..edb1f91 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -1061,7 +1061,7 @@ class MetaDataGenerator:
             data = RepoData()
             data.type = ftype
             data.checksum = (sumtype, csum)
-            data.timestamp = str(timestamp)
+            data.timestamp = str(int(timestamp))
             data.size = str(os.stat(os.path.join(repopath, rpm_file)).st_size)
             data.opensize = str(unsize)
             data.openchecksum = (sumtype, uncsum)


More information about the Rpm-metadata mailing list