From d243241b1c914981261b5ce1d852a4665364babd Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 12 Mar 2014 16:41:46 +0100 Subject: [PATCH] - added support for "osc requestmaintainership PROJECT" (if cwd is no package wc) --- osc/commandline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 66eb90bb..32b9c995 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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.')