From 1677fff920c5a9e6485cc98694c4fa7617456fdb Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 5 Mar 2015 17:03:10 +0100 Subject: reproducible: make sections work properly also for global pages --- bin/reproducible_html_indexes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 3a5a8ffc..04e21014 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -326,12 +326,14 @@ def build_page_section(page, section, suite, arch): def build_page(page, suite=None, arch=None): if not suite: # global page log.info('Building the ' + page + ' global index page...') + page_sections = global_pages[page]['body'] else: log.info('Building the ' + page + ' index page for ' + suite + '/' + arch + '...') + page_sections = pages[page]['body'] html = '' footnote = False - for section in pages[page]['body']: + for section in page_sections: if not suite: # global page for lsuite in SUITES: for larch in ARCHES: -- cgit v1.2.3-70-g09d2