1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

checkconstraints: add -M/--multibuild-package

This commit is contained in:
Andreas Schwab 2023-08-29 17:23:43 +02:00
parent 4a0c9a0f70
commit 657c45085b

View File

@ -6748,6 +6748,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@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 @@ Please submit there instead, or use --nodevelproject to force direct submission.
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: