Mailinglist Archive: opensuse-buildservice (244 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] run build under uid 0 when userootforbuild is used
osc --userootforbuild setup the --build_uid to 0:0. When both specified,
--userootforbuild has bigger priority.
---
osc/build.py | 2 ++
1 file changed, 2 insertions(+)

diff --git a/osc/build.py b/osc/build.py
index 9f97063..6879a2e 100644
--- a/osc/build.py
+++ b/osc/build.py
@@ -442,6 +442,8 @@ def main(apiurl, opts, argv):
build_uid = config['build-uid']
if opts.build_uid:
build_uid = opts.build_uid
+ if opts.userootforbuild:
+ build_uid='0:0'
if build_uid:
buildidre = re.compile('^[0-9]{1,5}:[0-9]{1,5}$')
if build_uid == 'caller':
--
1.7.10.4

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >