[PATCH] for prune-signed-copies, consider file timestamp

Mike McLean mikem at redhat.com
Fri Feb 20 20:09:10 UTC 2015


---
 cli/koji | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cli/koji b/cli/koji
index 9f5c5b1..bfb0955 100755
--- a/cli/koji
+++ b/cli/koji
@@ -2037,6 +2037,9 @@ def handle_prune_signed_copies(options, session, args):
                     #warn about this
                     print "Skipping %s. Not a regular file" % signedpath
                     continue
+                if st.st_mtime > cutoff_ts:
+                    print "Skipping %s. File newer than cutoff" % signedpath
+                    continue
                 if options.test:
                     print "Would have unlinked: %s" % signedpath
                 else:
-- 
1.9.3



More information about the buildsys mailing list