From bc2a2a5909f657dcc83c992b1f113dbff7bb1e9c Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 2 Sep 2014 10:11:26 +0200 Subject: [PATCH] dm-migrate: list source packages for which permissions were migrated. --- daklib/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daklib/command.py b/daklib/command.py index c1f9c706..73c8d240 100644 --- a/daklib/command.py +++ b/daklib/command.py @@ -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() -- 2.39.5