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
# .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+')
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()