From 7b00934a47f896e2fca854a194179220b13ed512 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Sat, 30 Jan 2010 19:22:32 +0100 Subject: [PATCH] - don't hardcode path to chroot binary --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index cae87aab..8a007769 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -3322,7 +3322,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. raise oscerr.OscIOError(None, '\'%s\' is not a directory' % buildroot) suwrapper = os.environ.get('OSC_SU_WRAPPER', conf.config['su-wrapper']).split() - cmd = '%s /usr/bin/chroot \'%s\' su - %s' % (' '.join(suwrapper[1:]), buildroot, user) + cmd = '%s chroot \'%s\' su - %s' % (' '.join(suwrapper[1:]), buildroot, user) print 'running: %s %s' % (suwrapper[0], cmd) os.execlp(suwrapper[0], suwrapper[0], cmd)