X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/25d2b37398f10c1767e518843907b5c2adb81b57..9eaf1f44d3f6e73a05bb057305e1158fb8f6c921:/invirt-build-conf diff --git a/invirt-build-conf b/invirt-build-conf index 637d396..d43bc7c 100755 --- a/invirt-build-conf +++ b/invirt-build-conf @@ -11,7 +11,8 @@ the git user that developers can push through. import os import tempfile -from invirt.authz import mech as authz +from invirt import authz +from invirt import builder from invirt.config import structs as config @@ -34,10 +35,10 @@ def main(): # .close(). Oh well. conf_fd, conf_name = tempfile.mkstemp() conf = os.fdopen(conf_fd, 'r+') - build_handler = '/usr/sbin/invirt-submit-build' + build_handler = '/usr/bin/invirt-submit-build' - for pocket in config.git.pockets: - acl = authz.expandAdmin(getattr(config.git.pockets, pocket).acl, None) + for pocket in config.build.pockets: + acl = authz.expandAdmin(getattr(config.build.pockets, pocket).acl, None) acl_fd, acl_name = tempfile.mkstemp() acl_fd = os.fdopen(acl_fd, 'r+') @@ -56,6 +57,8 @@ def main(): k5login = os.fdopen(k5login_fd, 'r+') print >>k5login, '\n'.join(all_devs) + os.rename(k5login_name, os.path.join(builder._REPO_DIR, '.k5login')) + if __name__ == '__main__': main()