extras-buildsys/utils/pushscript Utils.py,1.13,1.14

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sun Mar 4 01:00:42 UTC 2007


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29673

Modified Files:
	Utils.py 
Log Message:
We've had spurious "Dist %s (%s) was externally changed" results,
where top repodir mtime was set to 1 sec newer than repomd.xml.



Index: Utils.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/Utils.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Utils.py	2 Mar 2007 20:41:26 -0000	1.13
+++ Utils.py	4 Mar 2007 01:00:40 -0000	1.14
@@ -220,7 +220,7 @@
         for d in map(lambda x: os.path.join(root, x), dirs):
             if d in ignored_dirs:
                 continue
-            elif os.path.getmtime(d) > ref_mtime:
+            elif os.path.getmtime(d) > ref_mtime+1:  # +1 => allow dirs to be 1s off
                 return True
         for f in fnmatch.filter(files, '*.rpm'):
             if os.path.getmtime(os.path.join(root, f)) > ref_mtime:




More information about the scm-commits mailing list