From a03d782764a665c8b1cde954e59ff1d7f8eea7de Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 8 Jul 2015 11:44:58 +0000 Subject: reproducible: html_{notes,packages}: avoid collecting garbage 3 times in a row. One is enough --- bin/reproducible_html_notes.py | 2 +- bin/reproducible_html_packages.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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) -- cgit v1.2.3-54-g00ecf