diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-07-08 11:44:58 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-08 13:50:19 +0200 |
commit | a03d782764a665c8b1cde954e59ff1d7f8eea7de (patch) | |
tree | bb36b600d6640eefae37f6e2eb593e0668bcb11d | |
parent | 3c954457dc85ed3e8d98620a56eb514119aaea10 (diff) | |
download | jenkins.debian.net-a03d782764a665c8b1cde954e59ff1d7f8eea7de.tar.xz |
reproducible: html_{notes,packages}: avoid collecting garbage 3 times in a row. One is enough
-rwxr-xr-x | bin/reproducible_html_notes.py | 2 | ||||
-rwxr-xr-x | bin/reproducible_html_packages.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 56d00b5a..ad53f8c8 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -322,7 +322,7 @@ def purge_old_notes(notes): except IndexError: # the package is not tested. this can happen if pass # a package got removed from the archive if to_rebuild: - gen_packages_html(to_rebuild) + gen_packages_html(to_rebuild, no_clean=True) def purge_old_issues(issues): diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index a8a920a4..90faa463 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -235,7 +235,9 @@ def gen_packages_html(packages, suite=None, arch=None, no_clean=False, nocheck=F if nocheck and (not suite or not arch): for lsuite in SUITES: for larch in ARCHES: - gen_packages_html(packages, lsuite, larch, no_clean, True) + gen_packages_html(packages, lsuite, larch, True, True) + if not no_clean: + purge_old_pages() return for pkg in sorted(packages): pkg = str(pkg) |