From eda86ffb183927a6dbf698b3d174e5c732eec0f0 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 21 Jun 2016 09:53:31 +0000 Subject: reproducible: breakages: remove dead code Signed-off-by: Holger Levsen --- bin/reproducible_html_breakages.py | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'bin/reproducible_html_breakages.py') 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(): -- cgit v1.2.3-54-g00ecf