1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 12:26:05 -05:00

Niceify dump output

This commit is contained in:
Jack Foltz 2018-12-09 00:50:59 -05:00
parent 8fb5588064
commit cc827fcd1d
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -22,6 +22,9 @@ def run():
def dump(package): def dump(package):
print(package.name + ':') print(package.name + ':')
for k, v in package.getattrs(): for k, v in package.getattrs():
if isinstance(v, list):
print(' ' + k, [str(i) for i in v])
else:
print(' ' + k, v) print(' ' + k, v)
def lookup_package(name): def lookup_package(name):