forked from projg2/proxy-maint-bugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-all-maints.py
executable file
·38 lines (30 loc) · 977 Bytes
/
get-all-maints.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
import gentoopm
import pickle
import sys
def main():
pm = gentoopm.get_package_manager()
maints = {}
for p in pm.repositories['gentoo']:
# include only explicitly proxied by g-p-m
for m in p.maintainers:
if m.email == 'proxy-maint@gentoo.org':
break
else:
for m in p.maintainers:
if m.email.endswith('@gentoo.org'):
break
else:
if p.maintainers:
print('Proxied maintainer without a proxy?! pkg %s, %s'
% (p, p.maintainers),
file=sys.stderr)
continue
for m in p.maintainers:
# skip gentoo devs & projects
if m.email.endswith('@gentoo.org'):
continue
maints[m.email.lower()] = m.name
pickle.dump(maints, sys.stdout.buffer)
if __name__ == '__main__':
main()