From: Mitchell E Berger Date: Tue, 20 Dec 2011 18:41:10 +0000 (-0500) Subject: Add a repo_access configuration hook to grant VCS access to X-Git-Tag: 0.1.19^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/refs/heads/dev?hp=78011666f8c604b24b673ef94d0c31bc6778ce91 Add a repo_access configuration hook to grant VCS access to developers not trusted to build into any package pockets --- diff --git a/debian/changelog b/debian/changelog index 0a99b19..b7add8e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-dev (0.1.19) unstable; urgency=low + + * Add a repo_access configuration hook to grant VCS access to + developers not trusted to build into any package pockets + + -- Mitchell Berger Tue, 20 Dec 2011 13:40:00 -0500 + invirt-dev (0.1.18) unstable; urgency=low * Remove the source package when the binary package name is not the same diff --git a/invirt-build-conf b/invirt-build-conf index cd0a750..8df29d2 100755 --- a/invirt-build-conf +++ b/invirt-build-conf @@ -61,6 +61,10 @@ def main(): print >>f, 'create repo /usr/bin/invirt-add-repo /etc/remctl/acl/repo_admin' with atomic_write(os.path.join(builder._REPO_DIR, '.k5login')) as f: + if 'repo_access' in config.build: + acl = authz.expandAdmin(config.build.repo_access) + princs = [userToPrinc(a) for a in acl] + all_devs.update(set(princs)) print >>f, '\n'.join(all_devs)