add more detailed output to aclmanager

Print the names of the files we expect to be updating for each project
as they are found, since some repositories may use the same file for
permission settings.

Change-Id: I1a18d6916b99c6c5ce55306a6d9d13ecac4973bd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-01-10 11:46:50 -05:00
parent b0e5ba6e7e
commit 31ea2d605e
1 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,8 @@ def repositories_list(deliverables_dir, series):
d = deliverable.Deliverable(team, series, dname, dinfo)
if d.model != 'cycle-with-milestones':
continue
if not d.repos:
print('WARNING: no releases for {} in {}'.format(dname, series))
for repo in sorted(d.repos):
yield (d.team, repo)
@ -85,10 +87,13 @@ label-Workflow = -1..+1 group {group}
aclfiles = {}
for team, repo in repositories_list(args.deliverables_dir, args.series):
try:
aclfiles[acl[repo]] = team
to_update = acl[repo]
print('ACLs for {} owned by {} to be updated in {}'.format(
repo, team, to_update))
except KeyError:
print('No ACL file defined for %s' % repo)
sys.exit(1)
raise RuntimeError('No ACL file defined for %s' % repo)
aclfiles[to_update] = team
for aclfn, teamname in aclfiles.items():
newcontent = ''