Skip to content

Commit

Permalink
Print buildroot directory when build or chroot finishes
Browse files Browse the repository at this point in the history
This used to be printed but was dropped with a refactoring.
Of course, there is the --just-print-buildroot option, but
there is no harm printing this information anyway.

Signed-off-by: Egbert Eich <[email protected]>
  • Loading branch information
e4t authored and dmach committed Nov 5, 2024
1 parent 8b1df4d commit 42b5113
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 42b5113

Please sign in to comment.