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

This makes it annoying to parse.
This commit is contained in:
AJ Jordan 2019-04-08 03:41:45 -04:00
parent 75faa22dff
commit 3786197ab2
No known key found for this signature in database
GPG Key ID: A4FDB7BE12F63EC3

View File

@ -6,6 +6,9 @@ base = dnf.Base()
base.read_all_repos() base.read_all_repos()
first = True
for repo in base.repos.all(): for repo in base.repos.all():
l = [repo.id, repo.name, 'enabled' if repo.enabled else 'disabled'] 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='')