]> git.decadent.org.uk Git - dak.git/commitdiff
Report only obsolete source packages older than one day
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 21 Aug 2015 07:47:39 +0000 (09:47 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 21 Aug 2015 07:47:39 +0000 (09:47 +0200)
This should help with avoiding removal of source-only uploads where no
binary was built yet.

dak/cruft_report.py

index 5c6ee8d0c3270c5ca7d846ac8967799b1529cf38..fbbc0446d2156fe5643261ee8eefa438f9ba833d 100755 (executable)
@@ -346,6 +346,7 @@ SELECT ss.src, ss.source, ss.version,
     LEFT JOIN bin_associations_binaries bab
        ON ss.src = bab.source AND ss.suite = bab.suite
     WHERE s.suite_name = :suite_name AND bab.id IS NULL
+      AND now() - ss.install_date > '1 day'::interval
     ORDER BY install_date"""
     args = { 'suite_name': suite_name }
     return session.execute(query, args)