qubes-core-admin-linux/qubes-rpc/qubes.repos.List
2019-04-08 12:55:44 -04:00

12 lines
200 B
Python
Executable File

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