summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-09-29 15:14:07 +0200
committerHolger Levsen <holger@layer-acht.org>2016-09-29 15:14:07 +0200
commitd8a0ba4a3f1fa23f2f8ed1511d2d78bdfcb988b0 (patch)
tree3b38a9d1248a5cd2bf712eb8702f7f3eb1e5b5f8 /bin
parent0d4db5dfd69fe9afcd073370a151a919e5c69054 (diff)
downloadjenkins.debian.net-d8a0ba4a3f1fa23f2f8ed1511d2d78bdfcb988b0.tar.xz
reproducible Debian: remove history pages which should not been there (usually because the package has been removed)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_breakages.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 33782194..788526cc 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 ' +