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
=== modified file 'edit_acl.py'
--- edit_acl.py 2011-03-23 11:15:49 +0000
+++ edit_acl.py 2011-06-10 12:56:36 +0000
@@ -46,6 +46,9 @@
46 if options.archive is None:46 if options.archive is None:
47 return ubuntu.main_archive47 return ubuntu.main_archive
48 else:48 else:
49 if '/' in options.archive:
50 owner, ppa_name = options.archive.split('/')
51 return launchpad.people[owner].getPPAByName(name=ppa_name)
49 for archive in ubuntu.archives:52 for archive in ubuntu.archives:
50 if archive.name == options.archive:53 if archive.name == options.archive:
51 return archive54 return archive

Subscribers

People subscribed via source and target branches