Skip to content

Commit

Permalink
Merge pull request #1400 from andreas-schwab/master
Browse files Browse the repository at this point in the history
checkconstraints: add -M/--multibuild-package
  • Loading branch information
dmach authored Sep 4, 2023
2 parents 4a0c9a0 + 657c450 commit 1dd06ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1dd06ca

Please sign in to comment.