]> git.decadent.org.uk Git - dak.git/commitdiff
dm-migrate: list source packages for which permissions were migrated.
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 2 Sep 2014 08:11:26 +0000 (10:11 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 2 Sep 2014 08:11:26 +0000 (10:11 +0200)
daklib/command.py

index c1f9c706e02a443145c2065f5cc66850d9e5952b..73c8d240d21af08de6926e3d108baad28d150105 100644 (file)
@@ -306,13 +306,13 @@ class CommandFile(object):
 
         self.log.log(['dm-migrate', 'from={0}'.format(fpr_hash_from), 'to={0}'.format(fpr_hash_to)])
 
-        count = 0
+        sources = []
         for entry in session.query(ACLPerSource).filter_by(acl=acl, fingerprint=fpr_from):
             self.log.log(['dm-migrate', 'from={0}'.format(fpr_hash_from), 'to={0}'.format(fpr_hash_to), 'source={0}'.format(entry.source)])
             entry.fingerprint = fpr_to
-            count += 1
+            sources.append(entry.source)
 
-        self.result.append('Migrated {0} to {1}.\n{2} acl entries changed.'.format(fpr_hash_from, fpr_hash_to, count))
+        self.result.append('Migrated {0} to {1}.\n{2} acl entries changed: {3}'.format(fpr_hash_from, fpr_hash_to, len(sources), ", ".join(sources)))
 
         session.commit()