Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print buildroot directory when build or chroot finishes #1652

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7221,7 +7221,9 @@ def do_build(self, subcmd, opts, *args):
build_args = ['--root=' + build_root, '--noinit', '--shell']
if opts.wipe:
build_args.append('--wipe')
sys.exit(osc_build.run_build(opts, *build_args))
ret = osc_build.run_build(opts, *build_args)
print(f"The buildroot was: {build_root}")
sys.exit(ret)
elif subcmd in ('shell', 'chroot') or opts.shell:
print(f'--shell in combination with build-type {vm_chroot} is experimental.')
print('The semantics may change at any time!')
Expand Down Expand Up @@ -7270,7 +7272,9 @@ def do_build(self, subcmd, opts, *args):

print(f'Building {args[2]} for {args[0]}/{args[1]}')
if not opts.host:
return osc_build.main(self.get_api_url(), store, opts, args)
ret = osc_build.main(self.get_api_url(), store, opts, args)
print(f"The buildroot was: {build_root}")
return ret
else:
return self._do_rbuild(subcmd, opts, *args)

Expand Down
Loading