[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: fix breakage reports for rb-pkg pages

Holger Levsen holger at layer-acht.org
Wed Aug 17 22:08:19 UTC 2016


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 44596ec2fb123403928d6482abbc8e0e95927961
Author: Valerie R Young <spectranaut at riseup.net>
Date:   Wed Aug 17 17:13:06 2016 -0400

    reproducible debian: fix breakage reports for rb-pkg pages
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_breakages.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 2d7f265..157862c 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -10,7 +10,7 @@
 
 from reproducible_common import *
 import time
-
+import os.path
 
 def unrep_with_dbd_issues():
     log.info('running unrep_with_dbd_issues check...')
@@ -219,7 +219,15 @@ def alien_rbpkg():
     for root, dirs, files in os.walk(RB_PKG_PATH):
         if not files:
             continue
-        suite, arch = root.rsplit('/', 2)[1:]
+        # Extract the "suite" and "arch" from the directory structure
+        if os.path.split(root)[1] == 'diffoscope-results':
+            # We are presently inspecting package pages in the
+            # RB_PKG_PATH/{{suite}}/{{arch}}/diffoscope-results directory
+            suite, arch = os.path.split(root)[0].rsplit('/', 2)[1:]
+        else:
+            # We are presently inspecting package pages in the
+            # RB_PKG_PATH/{{suite}}/{{arch}}/ directory
+            suite, arch = root.rsplit('/', 2)[1:]
         for file in files:
             pkg = file.rsplit('.', 1)[0]
             if not query_db(query.format(pkg=pkg, suite=suite, arch=arch)):

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