[opensuse-buildservice] [PATCH] build: Fix for su-wrapper = su -c

su-wrapper = su -c has been broken since commit 5376580. Handle this case so that people do not have to update their configs. Signed-off-by: Michal Marek <mmarek@suse.cz> --- osc/build.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/osc/build.py b/osc/build.py index a77865c..e1f1196 100644 --- a/osc/build.py +++ b/osc/build.py @@ -847,6 +847,8 @@ def main(apiurl, opts, argv): if need_root: sucmd = config['su-wrapper'].split() if sucmd[0] == 'su': + if sucmd[-1] == '-c': + sucmd.pop() cmd = sucmd + ['-s', cmd[0], 'root', '--' ] + cmd[1:] else: cmd = sucmd + cmd -- 1.7.3.4 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 2010-12-31 16:56:35 +0100, Michal Marek wrote:
su-wrapper = su -c has been broken since commit 5376580. Handle this case so that people do not have to update their configs.
I just pushed it to git master. Thanks for the patch! Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Marcus Hüwe
-
Michal Marek