Don't write a trailing newline in qubes.repos.List
This makes it annoying to parse.
This commit is contained in:
parent
75faa22dff
commit
3786197ab2
@ -6,6 +6,9 @@ base = dnf.Base()
|
||||
|
||||
base.read_all_repos()
|
||||
|
||||
first = True
|
||||
for repo in base.repos.all():
|
||||
l = [repo.id, repo.name, 'enabled' if repo.enabled else 'disabled']
|
||||
print('\0'.join(l))
|
||||
if not first: print()
|
||||
first = False
|
||||
print('\0'.join(l), end='')
|
||||
|
Loading…
Reference in New Issue
Block a user