mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- do_vc: fixed #719754 ("osc vc fails with 'User not found'")
This commit is contained in:
parent
8971959187
commit
34454ac91d
@ -6872,10 +6872,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
user = conf.get_apiurl_usr(apiurl)
|
||||
|
||||
try:
|
||||
os.environ['mailaddr'], os.environ['username'] = get_user_data(apiurl, user, 'email', 'realname')
|
||||
except Exception, e:
|
||||
sys.exit('%s\nget_user_data(email) failed. Try env mailaddr=....\n' % e)
|
||||
data = get_user_data(apiurl, user+'x', 'email')
|
||||
if data:
|
||||
os.environ['mailaddr'] = data[0]
|
||||
else:
|
||||
print >>sys.stderr, 'Try env mailaddr=...'
|
||||
|
||||
# mailaddr can be overrided by config one
|
||||
if conf.config['api_host_options'][apiurl].has_key('email'):
|
||||
|
Loading…
Reference in New Issue
Block a user