Merge lp:~soren/ubuntu-archive-tools/edit-acl-for-ppas into lp:ubuntu-archive-tools

Proposed by Soren Hansen
Status: Merged
Merged at revision: 283
Proposed branch: lp:~soren/ubuntu-archive-tools/edit-acl-for-ppas
Merge into: lp:ubuntu-archive-tools
Diff against target: 13 lines (+3/-0)
1 file modified
edit_acl.py (+3/-0)
To merge this branch: bzr merge lp:~soren/ubuntu-archive-tools/edit-acl-for-ppas
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+64170@code.launchpad.net

Description of the change

Make edit_acl.py usable with PPAs.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'edit_acl.py'
2--- edit_acl.py 2011-03-23 11:15:49 +0000
3+++ edit_acl.py 2011-06-10 12:56:36 +0000
4@@ -46,6 +46,9 @@
5 if options.archive is None:
6 return ubuntu.main_archive
7 else:
8+ if '/' in options.archive:
9+ owner, ppa_name = options.archive.split('/')
10+ return launchpad.people[owner].getPPAByName(name=ppa_name)
11 for archive in ubuntu.archives:
12 if archive.name == options.archive:
13 return archive

Subscribers

People subscribed via source and target branches