summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-30 03:29:17 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-01 16:39:12 +0200
commit4630b5cdaab642db42a1b6ac5689afe203b3987d (patch)
tree035d4860db9aaf1ec8d77992227b941fbedff714 /bin
parent8334564c1e4fd484a5c1a4758fb34e6022312ac8 (diff)
downloadjenkins.debian.net-4630b5cdaab642db42a1b6ac5689afe203b3987d.tar.xz
reproducible: breakages: rename alien_rbuild to alien_log and do a fancy recursion to check both RBUILD_PATH and LOGS_PATH
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_breakages.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py
index 2f26eb37..5d4da63b 100755
--- a/bin/reproducible_breakages.py
+++ b/bin/reproducible_breakages.py
@@ -127,10 +127,15 @@ def pbuilder_dep_fail():
return bad_pkgs
-def alien_rbuild():
- log.info('running alien_rbuild check...')
+def alien_log(directory=None):
+ if directory == None:
+ bad_files = []
+ for path in RBUILD_PATH, LOGS_PATH:
+ bad_files.extend(alien_log(path))
+ return bad_files
+ log.info('running alien_log check over ' + directory + '...')
query = '''SELECT s.name
- FROM sources AS s JOIN results AS r on r.package_id=s.id
+ FROM sources AS s JOIN results AS r ON r.package_id=s.id
WHERE r.status != "" AND s.name="{pkg}" AND s.suite="{suite}"
AND s.architecture="{arch}"
ORDER BY s.name ASC, s.suite DESC'''
@@ -229,8 +234,8 @@ def _gen_section(header, pkgs, entries=None):
def gen_html():
html = ''
# files that should not be there (e.g. removed package without cleanup)
- html += _gen_section('rbuild file that should not be there', None,
- entries=alien_rbuild())
+ html += _gen_section('log files that should not be there', None,
+ entries=alien_log())
html += _gen_section('debbindiff files that should not be there:', None,
entries=alien_dbd())
html += _gen_section('rb-pkg pages that should not be there:', None,