[yum-commits] yum/repoMDObject.py

James Antill james at osuosl.org
Fri Dec 6 16:11:11 UTC 2013


 yum/repoMDObject.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8c4c81b8f958ffaf6f3cf710225eee48426ce767
Author: James Antill <james at and.org>
Date:   Fri Dec 6 11:11:05 2013 -0500

    Add comment about magic float timestamp compat. problem.

diff --git a/yum/repoMDObject.py b/yum/repoMDObject.py
index 97e6797..c2a349e 100755
--- a/yum/repoMDObject.py
+++ b/yum/repoMDObject.py
@@ -172,6 +172,9 @@ class RepoMD:
                         thisdata = old
                     self.repoData[thisdata.type] = thisdata
                     try:
+                        # NOTE: This will fail on float timestamps, this is
+                        # required for compatability. Fix is to not generate
+                        # float timestamps in repomd.xml.
                         nts = int(thisdata.timestamp)
                         if nts > self.timestamp: # max() not in old python
                             self.timestamp = nts


More information about the Yum-commits mailing list