Mailinglist Archive: opensuse-buildservice (158 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] build: Fix for su-wrapper = su -c
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Fri, 31 Dec 2010 16:56:35 +0100
  • Message-id: <1293810995-26578-1-git-send-email-mmarek@xxxxxxx>
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@xxxxxxx>
---
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
This Thread
  • No further messages