From e899e8a2e9cbb9c89571465f848ec3e0fd477b03 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 3 Jun 2015 16:32:25 +0200 Subject: reproducible: breakages: do not fail on unrecognized files --- bin/reproducible_breakages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py index 5d4da63b..4cbc3cfa 100755 --- a/bin/reproducible_breakages.py +++ b/bin/reproducible_breakages.py @@ -128,7 +128,7 @@ def pbuilder_dep_fail(): def alien_log(directory=None): - if directory == None: + if directory is None: bad_files = [] for path in RBUILD_PATH, LOGS_PATH: bad_files.extend(alien_log(path)) @@ -151,6 +151,7 @@ def alien_log(directory=None): log.critical(bcolors.FAIL + '/'.join([root, file]) + ' does not seem to be a file that should be there' + bcolors.ENDC) + continue if not query_db(query.format(pkg=pkg, suite=suite, arch=arch)): bad_files.append('/'.join([root, file])) log.warning('/'.join([root, file]) + ' should not be there') -- cgit v1.2.3-70-g09d2