[Qa-jenkins-scm] [jenkins.debian.net] 04/06: reproducible: html_indexes: prevent further TypeErrors by checking for a valid architecture and failing early

Holger Levsen holger at moszumanska.debian.org
Fri Mar 6 19:11:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 4c3f0e1e29dc7efaac31e10cf656f510257df15e
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Fri Mar 6 15:23:24 2015 +0100

    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(+)

diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index 564815b..335dc50 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']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list