]> git.decadent.org.uk Git - dak.git/commitdiff
control_suite: log suite name in "dak control-suite --set"
authorJulien Cristau <jcristau@debian.org>
Sat, 21 May 2016 13:48:17 +0000 (15:48 +0200)
committerJulien Cristau <jcristau@debian.org>
Sat, 21 May 2016 13:48:17 +0000 (15:48 +0200)
Signed-off-by: Julien Cristau <jcristau@debian.org>
dak/control_suite.py

index 5392259c6002ac20e15597c8123ef4eeb8ce63c3..c94fc1366e7c386cdd1195f3075f78ffc530a1fe 100755 (executable)
@@ -251,7 +251,7 @@ def set_suite(file, suite, transaction, britney=False, force=False):
             else:
                 transaction.copy_binary(pkg, suite, component)
 
-            Logger.log(["added", " ".join(key)])
+            Logger.log(["added", suite.suite_name, " ".join(key)])
 
     # Check to see which packages need removed and remove them
     for key, pkid in current.iteritems():
@@ -261,7 +261,7 @@ def set_suite(file, suite, transaction, britney=False, force=False):
                 session.execute("""DELETE FROM src_associations WHERE id = :pkid""", {'pkid': pkid})
             else:
                 session.execute("""DELETE FROM bin_associations WHERE id = :pkid""", {'pkid': pkid})
-            Logger.log(["removed", " ".join(key), pkid])
+            Logger.log(["removed", suite.suite_name, " ".join(key), pkid])
 
     session.commit()