Hi,
On 2012-11-13 21:18:50 +0100, 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:
I just committed your fix.
Thanks!
--- commandline.py
+++ /usr/lib64/python2.6/site-packages/osc/commandline.py
@@ -5235,7 +5235,7 @@ Please submit there instead, or use --no
else:
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)
Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-buildservice+owner(a)opensuse.org