Updated for spaces

This commit is contained in:
Dimitris Zlatanidis 2022-12-22 20:57:30 +02:00
parent bc386dffec
commit b9c3d2e53b

View file

@ -7,6 +7,7 @@ from slpkg.queries import SBoQueries
class Dependees:
""" Show which packages depend. """
def __init__(self, packages):
self.packages = packages
@ -49,10 +50,12 @@ class Dependees:
for i, v in enumerate(value, start=1):
if i == len(value):
char = last
if i == 1:
print(f'{cyan}{v}{endc}')
else:
print(f' {cyan}{v}{endc}')
print(f' {char} {" ".join([r for r in SBoQueries(v).requires()])}')
print(f'{" " * 3}{cyan}{v}{endc}')
print(f'{" " * 5}{char} {" ".join([r for r in SBoQueries(v).requires()])}')
print(f'\n{grey}{len(value)} dependees for {key}{endc}\n')