Skip to content

Instantly share code, notes, and snippets.

@mgorny
Created November 16, 2018 22:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgorny/4e750da0839c76cd28bba07d147c7a1f to your computer and use it in GitHub Desktop.
Save mgorny/4e750da0839c76cd28bba07d147c7a1f to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import gentoopm
import gentoopm.exceptions
pm = gentoopm.get_package_manager()
def main():
repo = pm.repositories['gentoo']
for ip in pm.installed:
try:
gp = repo.select(ip)
except gentoopm.exceptions.EmptyPackageSetError:
pass
else:
if not gp.maintainers:
print(gp.key)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment