Updated dependees

This commit is contained in:
Dimitris Zlatanidis 2022-12-24 23:10:47 +02:00
parent 983db71cd9
commit 3febb28c9d

View file

@ -23,7 +23,7 @@ class Dependees:
endc = color['endc'] endc = color['endc']
print(f"The list below shows the " print(f"The list below shows the "
f"packages that dependees '{', '.join([p for p in self.packages])}' files:\n") f"packages that dependees on '{', '.join([p for p in self.packages])}':\n")
print(end='\rCollecting the data... ') print(end='\rCollecting the data... ')
@ -41,7 +41,7 @@ class Dependees:
last = ' └─' last = ' └─'
print('\n') print('\n')
if dependees:
for key, value in dependees.items(): for key, value in dependees.items():
print(f'{yellow}{key}{endc}') print(f'{yellow}{key}{endc}')
print(end=f'\r{last}') print(end=f'\r{last}')
@ -59,3 +59,5 @@ class Dependees:
print(f'{" " * 4}{char} {" ".join([req for req in SBoQueries(v).requires()])}') print(f'{" " * 4}{char} {" ".join([req for req 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')
else:
print('No dependees found.\n')