From 7c941156b903e6be640af4f615b545d46e595073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 9 Jul 2024 09:35:41 +0200 Subject: [PATCH] Introduce build --checks parameter Added in build script --- osc/build.py | 2 ++ osc/commandline.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/osc/build.py b/osc/build.py index 40d2e376..fb19817e 100644 --- a/osc/build.py +++ b/osc/build.py @@ -804,6 +804,8 @@ def main(apiurl, store, opts, argv): buildargs.append('--norootforbuild') if opts.clean: buildargs.append('--clean') + if opts.checks: + buildargs.append('--checks') if opts.nochecks: buildargs.append('--no-checks') if not opts.no_changelog: diff --git a/osc/commandline.py b/osc/commandline.py index 61bb1c77..1cba3715 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7170,6 +7170,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='Copy overlay filesystem to buildroot after installing all RPMs .') @cmdln.option('--noinit', '--no-init', action='store_true', help='Skip initialization of build root and start with build immediately.') + @cmdln.option('--checks', action='store_true', + help='Run checks even if disabled in the build config') @cmdln.option('--nochecks', '--no-checks', action='store_true', help='Do not run build checks on the resulting packages.') @cmdln.option('--no-verify', '--noverify', action='store_true',