Created
November 16, 2018 22:01
-
-
Save mgorny/4e750da0839c76cd28bba07d147c7a1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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