]> git.decadent.org.uk Git - dak.git/commitdiff
log ids of deleted rows to aid debugging
authorTorsten Werner <twerner@debian.org>
Wed, 18 Nov 2009 19:36:02 +0000 (20:36 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 18 Nov 2009 19:36:02 +0000 (20:36 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/dominate.py

index 73eee8ca18f5261b95da7f930813b45334abfa53..7bb74c6728ff12a448bd4fadd418da48dfb7dbf5 100755 (executable)
@@ -35,10 +35,11 @@ def fetch(reason, query, args, session):
     for row in session.execute(query, args).fetchall():
         (id, package, version, suite_name, architecture) = row
         if Options['No-Action']:
-            print "Delete %s %s from %s architecture %s (%s)" % \
-                (package, version, suite_name, architecture, reason)
+            print "Delete %s %s from %s architecture %s (%s, %d)" % \
+                (package, version, suite_name, architecture, reason, id)
         else:
-            Logger.log([reason, package, version, suite_name, architecture])
+            Logger.log([reason, package, version, suite_name, \
+               architecture, id])
         idList.append(id)
     return idList