From: Frank Lichtenheld Date: Tue, 27 Oct 2009 14:27:30 +0000 (+0000) Subject: clean-suites: Use utils.warn for warnings about orphaned files X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b229bcbfef1ae77af8bdebcac4ba57c5fde70124;p=dak clean-suites: Use utils.warn for warnings about orphaned files Signed-off-by: Frank Lichtenheld --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 3445f5d4..49f488d0 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -167,9 +167,9 @@ SELECT id, filename FROM files f ql = q.fetchall() if len(ql) > 0: - print "WARNING: check_files found something it shouldn't" + utils.warn("check_files found something it shouldn't") for x in ql: - print x + utils.warn("orphaned file: %s" % x) Logger.log(["set lastused", x[1], "ORPHANED FILE"]) session.execute("UPDATE files SET last_used = :lastused WHERE id = :fileid", {'lastused': now_date, 'fileid': x[0]})