Mailinglist Archive: opensuse-buildservice (131 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: osc chroot fails to handle su-wrapper= properly

On Tue, Nov 13, Olaf Hering wrote:

On Tue, Nov 13, Olaf Hering wrote:

Having 'su-wrapper = true true' in ~/.oscrc causes osc chroot to fail,
it tries to execute "sudo 'true true' chroot ...". osc build does not
have such bug.

Doing it like this fixes it for me:

+++ /usr/lib64/python2.6/site-packages/osc/
@@ -5235,7 +5235,7 @@ Please submit there instead, or use --no
cmd = [sucmd, 'chroot', buildroot, 'su', '-', user]
if suargs:
- cmd.insert(1, suargs)
+ cmd[1:1] = suargs.split()
print 'running: %s' % ' '.join(cmd)
os.execvp(sucmd, cmd)

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

< Previous Next >