Skip to content

Commit

Permalink
Don't write a trailing newline in qubes.repos.List
Browse files Browse the repository at this point in the history
This makes it annoying to parse.
  • Loading branch information
strugee committed Apr 8, 2019
1 parent 75faa22 commit 3786197
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubes-rpc/qubes.repos.List
Original file line number Diff line number Diff line change
Expand Up @@ -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='')

0 comments on commit 3786197

Please sign in to comment.