qubes-core-admin-linux/qubes-rpc/qubes.repos.List

12 lines
200 B
Plaintext
Raw Normal View History

#!/usr/bin/python3
import dnf
base = dnf.Base()
base.read_all_repos()
for repo in base.repos.all():
2018-12-09 06:42:46 +00:00
l = [repo.id, repo.name, 'enabled' if repo.enabled else 'disabled']
print('\0'.join(l))