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: