From e71c017135a3ea08ad7b989845f7065ed277122a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 5 Mar 2015 17:04:53 +0100 Subject: reproducible: make titles work properly also for global pages --- bin/reproducible_html_indexes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_html_indexes.py') 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' -- cgit v1.2.3-70-g09d2