mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-22 02:02:11 +01:00
Fix crash in 'build' command due to undefined 'build_root' variable
This commit is contained in:
parent
611a6f5b2c
commit
67f7625ee5
@ -7277,6 +7277,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
print(f'Building {args[2]} for {args[0]}/{args[1]}')
|
print(f'Building {args[2]} for {args[0]}/{args[1]}')
|
||||||
if not opts.host:
|
if not opts.host:
|
||||||
ret = osc_build.main(self.get_api_url(), store, opts, args)
|
ret = osc_build.main(self.get_api_url(), store, opts, args)
|
||||||
|
if (subcmd in ('shell', 'chroot') or opts.shell or opts.wipe) and not vm_chroot:
|
||||||
print(f"The buildroot was: {build_root}")
|
print(f"The buildroot was: {build_root}")
|
||||||
return ret
|
return ret
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user