mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-27 19:58:21 +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:
|
class Dependees:
|
||||||
|
""" Show which packages depend. """
|
||||||
|
|
||||||
def __init__(self, packages):
|
def __init__(self, packages):
|
||||||
self.packages = packages
|
self.packages = packages
|
||||||
|
@ -49,10 +50,12 @@ class Dependees:
|
||||||
for i, v in enumerate(value, start=1):
|
for i, v in enumerate(value, start=1):
|
||||||
if i == len(value):
|
if i == len(value):
|
||||||
char = last
|
char = last
|
||||||
|
|
||||||
if i == 1:
|
if i == 1:
|
||||||
print(f'{cyan}{v}{endc}')
|
print(f'{cyan}{v}{endc}')
|
||||||
else:
|
else:
|
||||||
print(f' {cyan}{v}{endc}')
|
print(f'{" " * 3}{cyan}{v}{endc}')
|
||||||
print(f' {char} {" ".join([r for r in SBoQueries(v).requires()])}')
|
|
||||||
|
print(f'{" " * 5}{char} {" ".join([r for r in SBoQueries(v).requires()])}')
|
||||||
|
|
||||||
print(f'\n{grey}{len(value)} dependees for {key}{endc}\n')
|
print(f'\n{grey}{len(value)} dependees for {key}{endc}\n')
|
||||||
|
|
Loading…
Add table
Reference in a new issue