summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-09-29 00:48:06 +0200
committerHolger Levsen <holger@layer-acht.org>2016-09-29 00:48:06 +0200
commite4c68558b3f8643256165d231c0cce6be1d20872 (patch)
treebcb3a8a63a205e70f5b99d41bb96028d25bcaed6
parenteb621edb7126a24e6a585416445677cb6305cea8 (diff)
downloadjenkins.debian.net-e4c68558b3f8643256165d231c0cce6be1d20872.tar.xz
reproducible debian: ignore files which should not been there but are younger than a day
-rwxr-xr-xbin/reproducible_html_breakages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 157862c2..f0d0814c 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -159,11 +159,11 @@ def alien_log(directory=None):
rversion = '' # continue towards the "bad file" path
if strip_epoch(rversion) != version:
try:
- if os.path.getmtime('/'.join([root, file]))<time.time()-1800:
+ if os.path.getmtime('/'.join([root, file]))<time.time()-86400:
bad_files.append('/'.join([root, file]))
- log.warning('/'.join([root, file]) + ' should not be there')
+ log.warning('/'.join([root, file]) + ' should not be there and older than a day.')
else:
- log.info('ignoring ' + '/'.join([root, file]) + ' which should not be there, but is also less than 30m old and will probably soon be gone.')
+ log.info('ignoring ' + '/'.join([root, file]) + ' which should not be there, but is also less than 24h old and will probably soon be gone.')
except FileNotFoundError:
pass # that bad file is already gone.
return bad_files