From 745e243fc691e729f44906e4842c3a406cc635a4 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 16 Feb 2015 22:54:42 +0100 Subject: reproducible: html_indexes: gather bugs data even when the script is not called directly --- bin/reproducible_html_indexes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_html_indexes.py') diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 0611a067..9847781a 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -311,7 +311,9 @@ def build_page(page): log.info('"' + title + '" now available at ' + desturl) +bugs = get_bugs() + + if __name__ == '__main__': - bugs = get_bugs() for page in pages.keys(): build_page(page) -- cgit v1.2.3-70-g09d2