1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-19 08:42:11 +01:00

Fix crash in 'build' command due to undefined 'build_root' variable

This commit is contained in:
Daniel Mach 2024-11-08 13:19:19 +01:00
parent 611a6f5b2c
commit 67f7625ee5

View File

@ -7277,7 +7277,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print(f'Building {args[2]} for {args[0]}/{args[1]}')
if not opts.host:
ret = osc_build.main(self.get_api_url(), store, opts, args)
print(f"The buildroot was: {build_root}")
if (subcmd in ('shell', 'chroot') or opts.shell or opts.wipe) and not vm_chroot:
print(f"The buildroot was: {build_root}")
return ret
else:
return self._do_rbuild(subcmd, opts, *args)