summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-08-17 17:13:06 -0400
committerHolger Levsen <holger@layer-acht.org>2016-08-18 00:08:03 +0200
commit44596ec2fb123403928d6482abbc8e0e95927961 (patch)
tree501da121d9a5da58a402df14d8cbec32f2a3fa73 /bin
parent51781f8ee0771848b0a594dc49b8abf12ae00d15 (diff)
downloadjenkins.debian.net-44596ec2fb123403928d6482abbc8e0e95927961.tar.xz
reproducible debian: fix breakage reports for rb-pkg pages
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_breakages.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 2d7f2658..157862c2 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)):