[dak/master] Report only obsolete source packages older than one day
This should help with avoiding removal of source-only uploads where no
binary was built yet.
---
dak/cruft_report.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/dak/cruft_report.py b/dak/cruft_report.py
index 5c6ee8d..fbbc044 100755
--- a/dak/cruft_report.py
+++ b/dak/cruft_report.py
@@ -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)
--
2.1.4
Reply to: