From 44596ec2fb123403928d6482abbc8e0e95927961 Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Wed, 17 Aug 2016 17:13:06 -0400 Subject: reproducible debian: fix breakage reports for rb-pkg pages Signed-off-by: Holger Levsen --- bin/reproducible_html_breakages.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bin') 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)): -- cgit v1.2.3-70-g09d2