osclib/core: maintainers_get(): utilize new group_members() function.
This commit is contained in:
parent
b600860541
commit
056ab71426
@ -49,9 +49,7 @@ def maintainers_get(apiurl, project, package=None):
|
||||
maintainers = [p.get('name') for p in root.findall('.//person') if p.get('role') == 'maintainer']
|
||||
if not maintainers:
|
||||
for group in [p.get('name') for p in root.findall('.//group') if p.get('role') == 'maintainer']:
|
||||
url = makeurl(apiurl, ('group', group))
|
||||
root = ET.parse(http_GET(url)).getroot()
|
||||
maintainers = maintainers + [p.get('userid') for p in root.findall('./person/person')]
|
||||
maintainers = maintainers + group_members(apiurl, group)
|
||||
return maintainers
|
||||
|
||||
@memoize(session=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user