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

- added support for "osc requestmaintainership PROJECT" (if cwd is no package wc)

This commit is contained in:
Marcus Huewe 2014-03-12 16:41:46 +01:00
parent c66a75018e
commit d243241b1c

View File

@ -1701,6 +1701,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
usage:
osc requestmaintainership # for current user in checked out package
osc requestmaintainership USER # for specified user in checked out package
osc requestmaintainership PROJECT # for current user if cwd is not a checked out package
osc requestmaintainership PROJECT PACKAGE # for current user
osc requestmaintainership PROJECT PACKAGE USER # request for specified user
@ -1727,6 +1728,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
user = conf.get_apiurl_usr(apiurl)
else:
user = args[0]
elif len(args) == 1:
user = conf.get_apiurl_usr(apiurl)
project = args[0]
package = None
else:
raise oscerr.WrongArgs('Wrong number of arguments.')