mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
Merge pull request #1395 from andreas-schwab/checkconstraints
checkconstraints: allow constraints file with remote request
This commit is contained in:
commit
77152aaf37
@ -6756,22 +6756,27 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
usage:
|
usage:
|
||||||
remote request:
|
remote request:
|
||||||
osc checkconstraints [OPTS] PROJECT PACKAGE REPOSITORY ARCH
|
osc checkconstraints [OPTS] PROJECT PACKAGE REPOSITORY ARCH [CONSTRAINTSFILE]
|
||||||
|
|
||||||
in a package working copy:
|
in a package working copy:
|
||||||
osc checkconstraints [OPTS] REPOSITORY ARCH CONSTRAINTSFILE
|
osc checkconstraints [OPTS] REPOSITORY ARCH [CONSTRAINTSFILE]
|
||||||
osc checkconstraints [OPTS] CONSTRAINTSFILE
|
osc checkconstraints [OPTS] CONSTRAINTSFILE
|
||||||
osc checkconstraints [OPTS]
|
osc checkconstraints [OPTS]
|
||||||
"""
|
"""
|
||||||
repository = arch = constraintsfile = None
|
repository = arch = constraintsfile = None
|
||||||
args = slash_split(args)
|
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])
|
project = self._process_project_name(args[0])
|
||||||
package = args[1]
|
package = args[1]
|
||||||
repository = args[2]
|
repository = args[2]
|
||||||
arch = args[3]
|
arch = args[3]
|
||||||
opts.ignore_file = True
|
opts.ignore_file = True
|
||||||
|
if len(args) == 5:
|
||||||
|
constraintsfile = args[4];
|
||||||
else:
|
else:
|
||||||
project = store_read_project('.')
|
project = store_read_project('.')
|
||||||
package = store_read_package('.')
|
package = store_read_package('.')
|
||||||
|
Loading…
Reference in New Issue
Block a user