From 42b51136875deab7e45380e2aa5731267cddc1a6 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Sat, 2 Nov 2024 08:57:32 +0100 Subject: [PATCH] Print buildroot directory when build or chroot finishes 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 --- osc/commandline.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index c4cabb48c..3d89600a3 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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!') @@ -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)