From: Ansgar Burchardt Date: Tue, 14 Aug 2012 05:55:39 +0000 (+0200) Subject: dak/clean_suites.py: use '>' instead of '>=' X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9519748188108b6e1ea494a593424bc7fe8c5beb;p=dak dak/clean_suites.py: use '>' instead of '>=' --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index e9360012..e571ae0e 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -214,7 +214,7 @@ def clean_binaries(now_date, session): AND NOT EXISTS (SELECT 1 FROM files_archive_map af JOIN archive_delete_date ad ON af.archive_id = ad.archive_id WHERE af.file_id = b.file - AND (af.last_used IS NULL OR af.last_used >= ad.delete_date)) + AND (af.last_used IS NULL OR af.last_used > ad.delete_date)) RETURNING f.filename """) for b in q: @@ -254,7 +254,7 @@ def clean(now_date, archives, max_delete, session): AND NOT EXISTS (SELECT 1 FROM files_archive_map af JOIN archive_delete_date ad ON af.archive_id = ad.archive_id WHERE af.file_id = source.file - AND (af.last_used IS NULL OR af.last_used >= ad.delete_date)) + AND (af.last_used IS NULL OR af.last_used > ad.delete_date)) RETURNING source.id AS id, f.filename AS filename ), deleted_dsc_files AS (