From 64bd4113d0f5b6c8dd69e117cc94f85d535791b2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 24 Jan 2017 02:06:43 +0100 Subject: reproducible Debian: also delete alien buildinfo files older than a day Signed-off-by: Holger Levsen --- bin/reproducible_html_breakages.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py index 473505f9..e2a42f11 100755 --- a/bin/reproducible_html_breakages.py +++ b/bin/reproducible_html_breakages.py @@ -209,8 +209,15 @@ def alien_buildinfo(): except IndexError: # that package is not known (or not yet tested) rversion = '' # continue towards the "bad file" path if strip_epoch(rversion) != version: - bad_files.append('/'.join([root, file])) - log.warning('/'.join([root, file]) + ' should not be there') + try: + if os.path.getmtime('/'.join([root, file]))