12 lines
200 B
Python
Executable File
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))
|