[yum-cvs] yum/yum yumRepo.py,1.15,1.16

Seth Vidal skvidal at linux.duke.edu
Sat Aug 19 19:59:07 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv8156/yum

Modified Files:
	yumRepo.py 
Log Message:

fix for metadata_cookie not expiring when people have broken clocks and
don't know how to use ntp :)


Index: yumRepo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/yumRepo.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- yumRepo.py	19 Aug 2006 19:49:57 -0000	1.15
+++ yumRepo.py	19 Aug 2006 19:59:05 -0000	1.16
@@ -497,7 +497,9 @@
             cookie_info = os.stat(self.metadata_cookie)
             if cookie_info[8] + self.metadata_expire > time.time():
                 val = True
-
+            # WE ARE FROM THE FUTURE!!!!
+            elif cookie_info[8] > time.time():
+                val = False
         return val
 
     def setMetadataCookie(self):




More information about the Yum-cvs-commits mailing list