[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible debian: remove old files which should not be there

Holger Levsen holger at layer-acht.org
Wed Sep 28 23:12:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 69bb44f13854b87235680f4f56040da42cf568b4
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Sep 29 01:03:06 2016 +0200

    reproducible debian: remove old files which should not be there
---
 bin/reproducible_html_breakages.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index f0d0814..8a03734 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -161,7 +161,8 @@ def alien_log(directory=None):
                 try:
                     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 and older than a day.')
+                        os.remove('/'.join([root, file]))
+                        log.warning('/'.join([root, file]) + ' should not be there and and was older than a day so it was removed.')
                     else:
                         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:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list