From 9519748188108b6e1ea494a593424bc7fe8c5beb Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 14 Aug 2012 07:55:39 +0200 Subject: [PATCH] dak/clean_suites.py: use '>' instead of '>=' --- dak/clean_suites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ( -- 2.39.5