[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible Debian: remove history pages which should not been there (usually because the package has been removed)

Holger Levsen holger at layer-acht.org
Thu Sep 29 13:34:35 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 d8a0ba4a3f1fa23f2f8ed1511d2d78bdfcb988b0
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Sep 29 15:14:07 2016 +0200

    reproducible Debian: remove history pages which should not been there (usually because the package has been removed)
---
 bin/reproducible_html_breakages.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 3378219..788526c 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -249,8 +249,9 @@ def alien_history():
     bad_files = []
     for f in sorted(os.listdir(HISTORY_PATH)):
         if f.rsplit('.', 1)[0] not in actual_packages:
-            log.warning('%s should not be there', os.path.join(HISTORY_PATH, f))
             bad_files.append(os.path.join(HISTORY_PATH, f))
+            os.remove(os.path.join(HISTORY_PATH, f))
+            log.warning('%s should not be there so it has been removed.', os.path.join(HISTORY_PATH, f))
     return bad_files
 
 
@@ -288,7 +289,7 @@ def gen_html():
                          entries=alien_rbpkg())
     html += _gen_files_html('buildinfo files that should not be there:',
                          entries=alien_buildinfo())
-    html += _gen_files_html('history tables that should not be there:',
+    html += _gen_files_html('history pages that should not be there and thus have been removed:',
                          entries=alien_history())
     # diffoscope report where it shouldn't be
     html += _gen_packages_html('are not marked as unreproducible, but they ' +

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