Add a repo_access configuration hook to grant VCS access to dev mitchb 0.1.19
authorMitchell E Berger <mitchb@mit.edu>
Tue, 20 Dec 2011 18:41:10 +0000 (13:41 -0500)
committerMitchell E Berger <mitchb@mit.edu>
Tue, 20 Dec 2011 18:41:10 +0000 (13:41 -0500)
developers not trusted to build into any package pockets

debian/changelog
invirt-build-conf

index 0a99b19..b7add8e 100644 (file)
@@ -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 <mitchb@mit.edu>  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
 invirt-dev (0.1.18) unstable; urgency=low
 
   * Remove the source package when the binary package name is not the same
index cd0a750..8df29d2 100755 (executable)
@@ -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:
         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)
 
 
         print >>f, '\n'.join(all_devs)