mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
- use correct the user (depending on the apiurl)
This commit is contained in:
parent
6380c91d0f
commit
c93baf1f58
@ -1371,7 +1371,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
project = store_read_project(os.curdir)
|
project = store_read_project(os.curdir)
|
||||||
package = store_read_package(os.curdir)
|
package = store_read_package(os.curdir)
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
user = conf.config['user']
|
user = conf.get_apiurl_usr(apiurl)
|
||||||
else:
|
else:
|
||||||
user = args[0]
|
user = args[0]
|
||||||
else:
|
else:
|
||||||
@ -1379,21 +1379,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
project = args[0]
|
project = args[0]
|
||||||
package = args[1]
|
package = args[1]
|
||||||
user = conf.config['user']
|
user = conf.get_apiurl_usr(apiurl)
|
||||||
elif len(args) == 3:
|
elif len(args) == 3:
|
||||||
project = args[0]
|
project = args[0]
|
||||||
package = args[1]
|
package = args[1]
|
||||||
user = args[2]
|
user = args[2]
|
||||||
else:
|
else:
|
||||||
raise oscerr.WrongArgs('Wrong number of arguments.')
|
raise oscerr.WrongArgs('Wrong number of arguments.')
|
||||||
|
|
||||||
arg = [ user, 'maintainer', project, package ]
|
arg = [ user, 'maintainer', project, package ]
|
||||||
|
|
||||||
actionsxml = ""
|
actionsxml = self._add_role(arg, None)
|
||||||
actionsxml += self._add_role(arg, None)
|
|
||||||
|
|
||||||
if actionsxml == "":
|
|
||||||
sys.exit('No actions need to be taken.')
|
|
||||||
|
|
||||||
if not opts.message:
|
if not opts.message:
|
||||||
opts.message = edit_message()
|
opts.message = edit_message()
|
||||||
|
Loading…
Reference in New Issue
Block a user