From: Frank Lichtenheld Date: Tue, 27 Oct 2009 22:55:53 +0000 (+0000) Subject: clean-suites: Log totals as well X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a55ac1d197e1adea16fae8fa7cbc3e5ac0b9b0;p=dak clean-suites: Log totals as well Signed-off-by: Frank Lichtenheld --- 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) ################################################################################