1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00

Fix 'build' command to pass '--vm-type' option to the underlying build tool

This commit is contained in:
Daniel Mach 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):
cmd = [conf.config['build-cmd']]
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)
if not user: