mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-20 21:48:53 +02:00
Fix 'build' command to pass '--vm-type' option to the underlying build tool
This commit is contained in:
@@ -648,7 +648,9 @@ def su_wrapper(cmd):
|
|||||||
def run_build(opts, *args):
|
def run_build(opts, *args):
|
||||||
cmd = [conf.config['build-cmd']]
|
cmd = [conf.config['build-cmd']]
|
||||||
cmd += args
|
cmd += args
|
||||||
cmd = su_wrapper(cmd)
|
|
||||||
|
if opts.vm_type:
|
||||||
|
cmd.extend(["--vm-type", opts.vm_type])
|
||||||
|
|
||||||
user = calculate_build_root_user(opts.vm_type)
|
user = calculate_build_root_user(opts.vm_type)
|
||||||
if not user:
|
if not user:
|
||||||
|
Reference in New Issue
Block a user