From 4c3f0e1e29dc7efaac31e10cf656f510257df15e Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 6 Mar 2015 15:23:24 +0100 Subject: reproducible: html_indexes: prevent further TypeErrors by checking for a valid architecture and failing early --- bin/reproducible_html_indexes.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 564815b9..335dc503 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -324,6 +324,10 @@ def build_page_section(page, section, suite, arch): def build_page(page, suite=None, arch=None): + if suite and not arch: + print_critical_message('The architecture was not specified while ' + + 'building a suite-specific page.') + sys.exit(1) if not suite: # global page log.info('Building the ' + page + ' global index page...') page_sections = global_pages[page]['body'] -- cgit v1.2.3-54-g00ecf