1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

- do_chroot: fixed suargs handling (patch by Olaf Hering <olaf@aepfle.de>)

This commit is contained in:
Marcus Huewe 2013-02-07 15:13:21 +01:00
parent 143af44479
commit 7d46c5f879

View File

@ -5421,7 +5421,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
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)