From 657c45085b7e0d9931c8ed2c433b299dd62cf960 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 29 Aug 2023 17:23:43 +0200 Subject: [PATCH] checkconstraints: add -M/--multibuild-package --- osc/commandline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 0894aa2b49..5257dfcc51 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -6748,6 +6748,8 @@ def do_workerinfo(self, subcmd, opts): @cmdln.option('', '--ignore-file', action='store_true', help='ignore _constraints file and only check project constraints') + @cmdln.option('-M', '--multibuild-package', metavar='FLAVOR', + help=HELP_MULTIBUILD_ONE) def do_checkconstraints(self, subcmd, opts, *args): """ Check the constraints and view compliant workers @@ -6781,6 +6783,9 @@ def do_checkconstraints(self, subcmd, opts, *args): project = store_read_project('.') package = store_read_package('.') + if opts.multibuild_package: + package = package + ":" + opts.multibuild_package + if len(args) == 1: constraintsfile = args[0] elif len(args) == 2 or len(args) == 3: