mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated for spaces
This commit is contained in:
parent
bc386dffec
commit
b9c3d2e53b
1 changed files with 5 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue