1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- use correct the user (depending on the apiurl)

This commit is contained in:
Marcus Huewe 2010-08-18 12:40:43 +02:00
parent 6380c91d0f
commit c93baf1f58

View File

@ -1371,7 +1371,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
project = store_read_project(os.curdir)
package = store_read_package(os.curdir)
if len(args) == 0:
user = conf.config['user']
user = conf.get_apiurl_usr(apiurl)
else:
user = args[0]
else:
@ -1379,21 +1379,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif len(args) == 2:
project = args[0]
package = args[1]
user = conf.config['user']
user = conf.get_apiurl_usr(apiurl)
elif len(args) == 3:
project = args[0]
package = args[1]
user = args[2]
user = args[2]
else:
raise oscerr.WrongArgs('Wrong number of arguments.')
arg = [ user, 'maintainer', project, package ]
actionsxml = ""
actionsxml += self._add_role(arg, None)
if actionsxml == "":
sys.exit('No actions need to be taken.')
actionsxml = self._add_role(arg, None)
if not opts.message:
opts.message = edit_message()