summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-06-21 09:53:31 +0000
committerHolger Levsen <holger@layer-acht.org>2016-06-21 15:04:37 +0200
commiteda86ffb183927a6dbf698b3d174e5c732eec0f0 (patch)
tree73b3a0ea320d112c7fb62cf89a613bffd3af814e
parent6398a2352a34378c18549ed95f4d99b809af3fe2 (diff)
downloadjenkins.debian.net-eda86ffb183927a6dbf698b3d174e5c732eec0f0.tar.xz
reproducible: breakages: remove dead code
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_html_breakages.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 05f8d6ba..af32e4fd 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -191,37 +191,6 @@ def alien_dbd(directory=None):
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
- WHERE s.name="{pkg}" AND s.suite="{suite}"
- AND s.architecture="{arch}"
- ORDER BY s.name ASC, s.suite DESC, s.architecture ASC'''
- bad_files = []
- for root, dirs, files in os.walk(directory):
- if not files:
- continue
- suite, arch = root.rsplit('/', 2)[1:]
- for file in files:
- try:
- pkg, version = file.rsplit('.', 2)[0].rsplit('_', 1)
- except ValueError:
- log.critical(bcolors.FAIL + '/'.join([root, file]) +
- ' does not seem to be a file that should be there'
- + bcolors.ENDC)
- result = query_db(query.format(pkg=pkg, suite=suite, arch=arch))
- try:
- if result[0][0] != 'unreproducible':
- bad_files.append('/'.join([root, file]) + ' (' +
- str(result[0][0]) + ' package)')
- log.warning('/'.join([root, file]) + ' should not be '
- 'there (' + str(result[0][0]) + ' package)')
- except IndexError:
- bad_files.append('/'.join([root, file]) + ' (' +
- 'missing package)')
- log.warning(bcolors.WARN + '/'.join([root, file]) + ' should '
- 'not be there (missing package)' + bcolors.ENDC)
- return bad_files
def alien_rbpkg():