Don't write a trailing newline in qubes.repos.List

This makes it annoying to parse.
pull/48/head
AJ Jordan 5 years ago
parent 75faa22dff
commit 3786197ab2
No known key found for this signature in database
GPG Key ID: A4FDB7BE12F63EC3

@ -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…
Cancel
Save