From dc253ed212b5486eb3e14cd86e4a562b589373e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 13 Jan 2022 11:57:54 +0100 Subject: [PATCH] add build --verbose option for build script shows kernel messages (only) atm --- NEWS | 2 +- osc/build.py | 2 ++ osc/commandline.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 3afdf8f8..451fb266 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,5 @@ 0.176.0 - - + - add --verbose option to build command 0.175.0 - do not crash when running "osc search --binary --verbose foo" diff --git a/osc/build.py b/osc/build.py index cad5261a..8aa3e0da 100644 --- a/osc/build.py +++ b/osc/build.py @@ -742,6 +742,8 @@ def main(apiurl, opts, argv): if opts.multibuild_package: buildargs.append('--buildflavor=%s' % opts.multibuild_package) pac = pac + ":" + opts.multibuild_package + if opts.verbose: + buildargs.append('--verbose=%s' % opts.verbose) if opts.wipe: buildargs.append("--wipe") diff --git a/osc/commandline.py b/osc/commandline.py index 1b6b9138..b0452e66 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -6541,6 +6541,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='only fetch packages from the api') @cmdln.option('--oldpackages', metavar='DIR', help='take previous build from DIR (special values: _self, _link)') + @cmdln.option('--verbose', metavar='VERBOSE', + help='set a verbose mode, arguments can be "all" or "vm"') @cmdln.option('--wipe', action='store_true', help=SUPPRESS_HELP) @cmdln.option('--shell', action='store_true',