summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-05 17:03:10 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-05 17:03:10 +0100
commit1677fff920c5a9e6485cc98694c4fa7617456fdb (patch)
tree2944ee893148abb9dbff0d7ac7b5eac7a844e4ed
parent77ce2d4ec5ec8fc0d487bf21510277557204bcc1 (diff)
downloadjenkins.debian.net-1677fff920c5a9e6485cc98694c4fa7617456fdb.tar.xz
reproducible: make sections work properly also for global pages
-rwxr-xr-xbin/reproducible_html_indexes.py4
1 files changed, 3 insertions, 1 deletions
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: