for prune-signed-copies, consider file timestamp

This commit is contained in:
Mike McLean 2015-02-20 15:07:09 -05:00
parent 017e1ad053
commit 731add25f4

View file

@ -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: