1
0
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:
2023-09-27 09:21:46 +02:00
parent 47f32e6ef1
commit 41ce932673

View File

@@ -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: