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:
parent
47f32e6ef1
commit
41ce932673
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user