mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Fix 'osc lock' command
This commit is contained in:
parent
84138fb41f
commit
2d14d0d1ec
@ -3749,13 +3749,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
@cmdln.option('-m', '--message', metavar='TEXT',
|
||||
help='specify log message TEXT')
|
||||
def do_lock(self, subcmd, opts, project, package=None):
|
||||
@cmdln.option('project')
|
||||
@cmdln.option('package', nargs='?')
|
||||
def do_lock(self, subcmd, opts):
|
||||
"""
|
||||
Locks a project or package
|
||||
|
||||
usage:
|
||||
osc lock PROJECT [PACKAGE]
|
||||
"""
|
||||
project = opts.project
|
||||
package = opts.package
|
||||
apiurl = self.get_api_url()
|
||||
kind = 'prj'
|
||||
path_args = (project,)
|
||||
|
Loading…
Reference in New Issue
Block a user