X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fclean_suites.py;h=e571ae0e8c585aee24e2b3f9dc8ee2721d2705a6;hb=cd4131cbd12f12c99005a3fdc497886cb285f907;hp=e9360012550da7fd686a5d1db17951eda60d0873;hpb=09a1a20566dcf84ca229b4339bd8f8080eb59afd;p=dak.git 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 (