You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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))
|