projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have authz providers use an invirt.authz module.
[invirt/packages/invirt-dev.git]
/
invirt-build-conf
diff --git
a/invirt-build-conf
b/invirt-build-conf
index
637d396
..
d43bc7c
100755
(executable)
--- a/
invirt-build-conf
+++ b/
invirt-build-conf
@@
-11,7
+11,8
@@
the git user that developers can push through.
import os
import tempfile
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
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+')
# .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+')
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)
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()
if __name__ == '__main__':
main()