diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-06 15:23:24 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-06 15:23:24 +0100 |
commit | 4c3f0e1e29dc7efaac31e10cf656f510257df15e (patch) | |
tree | d27ebcbc6cbf4d3df293b6d3313d7534dc6251f7 /bin | |
parent | 7fc2611ecbe57022bdecbed1e03ac347db80b472 (diff) | |
download | jenkins.debian.net-4c3f0e1e29dc7efaac31e10cf656f510257df15e.tar.xz |
reproducible: html_indexes: prevent further TypeErrors by checking for a valid architecture and failing early
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_indexes.py | 4 |
1 files changed, 4 insertions, 0 deletions
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'] |