1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 05:26:16 +01:00

Revert "rename requestmaintainership to requestrole (much nicer and makes more sense)"

This reverts commit cc9d3e07eb.
(see discussion on the ml)
This commit is contained in:
Marcus Huewe 2010-11-25 22:23:12 +01:00
parent cc9d3e07eb
commit 668a38e978

View File

@ -1358,21 +1358,22 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='specify message TEXT') help='specify message TEXT')
@cmdln.option('-r', '--role', metavar='role', default='maintainer', @cmdln.option('-r', '--role', metavar='role', default='maintainer',
help='specify user role (default: maintainer)') help='specify user role (default: maintainer)')
@cmdln.alias("reqrole") @cmdln.alias("reqmaintainership")
def do_requestrole(self, subcmd, opts, *args): @cmdln.alias("reqms")
"""${cmd_name}: requests to add user as a certain role (usually maintainer) def do_requestmaintainership(self, subcmd, opts, *args):
"""${cmd_name}: requests to add user as maintainer
usage: usage:
osc requestrole # for current user in checked out package osc requestmaintainership # for current user in checked out package
osc requestrole USER # for specified user in checked out package osc requestmaintainership USER # for specified user in checked out package
osc requestrole PROJECT PACKAGE # for current user osc requestmaintainership PROJECT PACKAGE # for current user
osc requestrole PROJECT PACKAGE USER # request for specified user osc requestmaintainership PROJECT PACKAGE USER # request for specified user
${cmd_option_list} ${cmd_option_list}
""" """
args = slash_split(args) args = slash_split(args)
apiurl = self.get_api_url() apiurl = self.get_api_url()
if len(args) < 2: if len(args) < 2:
if is_package_dir(os.getcwd()): if is_package_dir(os.getcwd()):
project = store_read_project(os.curdir) project = store_read_project(os.curdir)
@ -1394,8 +1395,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else: else:
raise oscerr.WrongArgs('Wrong number of arguments.') raise oscerr.WrongArgs('Wrong number of arguments.')
if not opts.role in ('maintainer', 'bugowner', 'reviewer', 'downloader'): if not opts.role in ('maintainer', 'bugowner'):
raise oscerr.WrongOptions("invalid '--role': specify one of these: 'maintainer', 'bugowner', 'reviewer', 'downloader'") raise oscerr.WrongOptions('invalid \'--role\': either specify \'maintainer\' or \'bugowner\'')
arg = [ user, opts.role, project, package ] arg = [ user, opts.role, project, package ]