mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
- fix for commit 54513a23de
This commit is contained in:
parent
23578e72fd
commit
c7c1f19445
@ -3924,15 +3924,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
request_todo = {}
|
||||
roles = {}
|
||||
if len(what.keys()) == 2:
|
||||
for i in res['project'].findall('project'):
|
||||
for i in res['project_id'].findall('project'):
|
||||
request_todo[i.get('name')] = []
|
||||
roles[i.get('name')] = [p.get('role') for p in i.findall('person') if p.get('userid') == user]
|
||||
for i in res['package'].findall('package'):
|
||||
for i in res['package_id'].findall('package'):
|
||||
roles['/'.join([i.get('project'), i.get('name')])] = [p.get('role') for p in i.findall('person') if p.get('userid') == user]
|
||||
if not i.get('project') in request_todo.keys():
|
||||
request_todo.setdefault(i.get('project'), []).append(i.get('name'))
|
||||
else:
|
||||
for i in res['project'].findall('project'):
|
||||
for i in res['project_id'].findall('project'):
|
||||
roles[i.get('name')] = [p.get('role') for p in i.findall('person') if p.get('userid') == user]
|
||||
|
||||
if list_requests:
|
||||
|
Loading…
Reference in New Issue
Block a user