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

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


Author: mschwendt

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

Modified Files:
	Utils.py 
Log Message:
previous commit to false location


Index: Utils.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/Utils.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Utils.py	4 Mar 2007 01:00:40 -0000	1.14
+++ Utils.py	4 Mar 2007 01:11:36 -0000	1.15
@@ -204,7 +204,7 @@
     if not os.path.exists(ref_file):
         return True
     ref_mtime = os.path.getmtime(ref_file)
-    if os.path.getmtime(repodir) > ref_mtime:
+    if os.path.getmtime(repodir) > ref_mtime+1:  # +1 => allow dirs to be 1s off
         return True
     ignored_dirs = (
         os.path.join(repodir, 'repodata'),
@@ -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+1:  # +1 => allow dirs to be 1s off
+            elif os.path.getmtime(d) > ref_mtime:
                 return True
         for f in fnmatch.filter(files, '*.rpm'):
             if os.path.getmtime(os.path.join(root, f)) > ref_mtime:




More information about the fedora-extras-commits mailing list