From d8a0ba4a3f1fa23f2f8ed1511d2d78bdfcb988b0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 29 Sep 2016 15:14:07 +0200 Subject: 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 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 ' + -- cgit v1.2.3-70-g09d2