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

- show also groups in maintainer/bugowner search

This commit is contained in:
Adrian Schröter 2013-04-22 17:09:33 +02:00
parent a8def0f433
commit 9595aa9f09

View File

@ -6996,6 +6996,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
maintainers.setdefault("package", result.get('package'))
for person in result.findall('person'):
maintainers.setdefault(person.get('role'), []).append(person.get('name'))
for group in result.findall('group'):
maintainers.setdefault(group.get('role'), []).append("group:"+group.get('name'))
projects = projects + [maintainers]
# from meta data
if metaroot:
@ -7003,6 +7005,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
maintainers = {}
for person in metaroot.findall('person'):
maintainers.setdefault(person.get('role'), []).append(person.get('userid'))
for group in metaroot.findall('group'):
maintainers.setdefault(group.get('role'), []).append("group:"+group.get('groupid'))
projects = [maintainers]
# showing the maintainers