summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_breakages.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-17 00:00:40 +0000
committerHolger Levsen <holger@layer-acht.org>2015-07-05 14:01:20 +0200
commita0a54ab8771f0e6878c86d0dbf2f344ec965aa5a (patch)
treea9b0d9ad79b765ad94810d42699911c767026d37 /bin/reproducible_breakages.py
parent201d61faf1e8669e7e62179ad1c2bb918523de8b (diff)
downloadjenkins.debian.net-a0a54ab8771f0e6878c86d0dbf2f344ec965aa5a.tar.xz
reproducible: also save the --text output of debbindiff
Diffstat (limited to 'bin/reproducible_breakages.py')
-rwxr-xr-xbin/reproducible_breakages.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py
index 208140ff..88c4bca2 100755
--- a/bin/reproducible_breakages.py
+++ b/bin/reproducible_breakages.py
@@ -158,7 +158,12 @@ def alien_log(directory=None):
return bad_files
-def alien_dbd():
+def alien_dbd(directory=None):
+ if directory is None:
+ bad_files = []
+ for path in DBD_PATH, DBDTXT_PATH:
+ bad_files.extend(alien_log(path))
+ return bad_files
log.info('running alien_dbd check...')
query = '''SELECT r.status
FROM sources AS s JOIN results AS r on r.package_id=s.id
@@ -166,7 +171,7 @@ def alien_dbd():
AND s.architecture="{arch}"
ORDER BY s.name ASC, s.suite DESC'''
bad_files = []
- for root, dirs, files in os.walk(DBD_PATH):
+ for root, dirs, files in os.walk(directory):
if not files:
continue
suite, arch = root.rsplit('/', 2)[1:]