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 5392259..c94fc13 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()