summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-05 17:04:53 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-05 17:04:53 +0100
commite71c017135a3ea08ad7b989845f7065ed277122a (patch)
tree43625e19004ae17c81a9eaf238cf463bd78151ba /bin
parent1677fff920c5a9e6485cc98694c4fa7617456fdb (diff)
downloadjenkins.debian.net-e71c017135a3ea08ad7b989845f7065ed277122a.tar.xz
reproducible: make titles work properly also for global pages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_indexes.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index 04e21014..a6775921 100755
--- a/bin/reproducible_html_indexes.py
+++ b/bin/reproducible_html_indexes.py
@@ -327,10 +327,12 @@ 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']
+ title = global_pages[page]['title']
else:
log.info('Building the ' + page + ' index page for ' + suite + '/' +
arch + '...')
page_sections = pages[page]['body']
+ title = pages[page]['title']
html = ''
footnote = False
for section in page_sections:
@@ -343,10 +345,6 @@ def build_page(page, suite=None, arch=None):
html1, footnote1 = build_page_section(page, section, suite, arch)
html += html1
footnote = True if footnote1 else footnote
- try:
- title = pages[page]['title']
- except KeyError:
- title = page
if not suite: # global page
destfile = BASE + '/index_' + page + '.html'
desturl = REPRODUCIBLE_URL + '/index_' + page + '.html'