From 73a55ac1d197e1adea16fae8fa7cbc3e5ac0b9b0 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 27 Oct 2009 22:55:53 +0000 Subject: [PATCH] clean-suites: Log totals as well Signed-off-by: Frank Lichtenheld --- dak/clean_suites.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 7ea90b82..24ab0d6c 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -263,6 +263,7 @@ SELECT s.id, f.filename FROM source s, files f session.commit() if count > 0: + Logger.log(["total", count, utils.size_type(size)]) print "Cleaned %d files, %s." % (count, utils.size_type(size)) ################################################################################ @@ -290,6 +291,7 @@ SELECT m.id, m.name FROM maintainer m session.commit() if count > 0: + Logger.log(["total", count]) print "Cleared out %d maintainer entries." % (count) ################################################################################ @@ -317,6 +319,7 @@ SELECT f.id, f.fingerprint FROM fingerprint f session.commit() if count > 0: + Logger.log(["total", count]) print "Cleared out %d fingerprint entries." % (count) ################################################################################ @@ -351,6 +354,7 @@ def clean_queue_build(now_date, delete_date, max_delete, session): session.commit() if count: + Logger.log(["total", count]) print "Cleaned %d queue_build files." % (count) ################################################################################ -- 2.39.5