Skip to content

Commit

Permalink
Merge pull request #1395 from andreas-schwab/checkconstraints
Browse files Browse the repository at this point in the history
checkconstraints: allow constraints file with remote request
  • Loading branch information
dmach committed Aug 30, 2023
2 parents a77f3d4 + daafc19 commit 77152aa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions osc/commandline.py
Expand Up @@ -6756,22 +6756,27 @@ def do_checkconstraints(self, subcmd, opts, *args):
usage:
remote request:
osc checkconstraints [OPTS] PROJECT PACKAGE REPOSITORY ARCH
osc checkconstraints [OPTS] PROJECT PACKAGE REPOSITORY ARCH [CONSTRAINTSFILE]
in a package working copy:
osc checkconstraints [OPTS] REPOSITORY ARCH CONSTRAINTSFILE
osc checkconstraints [OPTS] REPOSITORY ARCH [CONSTRAINTSFILE]
osc checkconstraints [OPTS] CONSTRAINTSFILE
osc checkconstraints [OPTS]
"""
repository = arch = constraintsfile = None
args = slash_split(args)

if len(args) == 4:
if len(args) > 5:
raise oscerr.WrongArgs('Too many arguments')

if len(args) == 4 or len(args) == 5:
project = self._process_project_name(args[0])
package = args[1]
repository = args[2]
arch = args[3]
opts.ignore_file = True
if len(args) == 5:
constraintsfile = args[4];
else:
project = store_read_project('.')
package = store_read_package('.')
Expand Down

0 comments on commit 77152aa

Please sign in to comment.