]> err.no Git - dak/commitdiff
clean-suites: Use utils.warn for warnings about orphaned files
authorFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 14:27:30 +0000 (14:27 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 14:27:30 +0000 (14:27 +0000)
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
dak/clean_suites.py

index 3445f5d45c8389fbca6c5726b6a463f85879f5e0..49f488d0b477c527e21a7a532400452036c93b6b 100755 (executable)
@@ -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]})