[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible: make sections work properly also for global pages

Holger Levsen holger at moszumanska.debian.org
Thu Mar 5 16:54:04 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 1677fff920c5a9e6485cc98694c4fa7617456fdb
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 5 17:03:10 2015 +0100

    reproducible: make sections work properly also for global pages
---
 bin/reproducible_html_indexes.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index 3a5a8ff..04e2101 100755
--- a/bin/reproducible_html_indexes.py
+++ b/bin/reproducible_html_indexes.py
@@ -326,12 +326,14 @@ def build_page_section(page, section, suite, arch):
 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']
     else:
         log.info('Building the ' + page + ' index page for ' + suite + '/' +
                  arch + '...')
+        page_sections = pages[page]['body']
     html = ''
     footnote = False
-    for section in pages[page]['body']:
+    for section in page_sections:
         if not suite:  # global page
             for lsuite in SUITES:
                 for larch in ARCHES:

-- 
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