From b229bcbfef1ae77af8bdebcac4ba57c5fde70124 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 27 Oct 2009 14:27:30 +0000 Subject: [PATCH] clean-suites: Use utils.warn for warnings about orphaned files Signed-off-by: Frank Lichtenheld --- dak/clean_suites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]}) -- 2.39.5