Updated for naming

This commit is contained in:
Dimitris Zlatanidis 2023-05-09 19:59:43 +03:00
parent fb942b656a
commit fb709abdf7

View file

@ -44,11 +44,11 @@ class Dependees(Configs):
self.view_dependees(dependees)
self.view_summary_of_dependees(dependees, package)
def set_the_package_version(self, name: str):
def set_the_package_version(self, package: str):
if self.is_binary:
self.package_version: str = self.data[name][0]
self.package_version: str = self.data[package][0]
else:
self.package_version: str = self.data[name][2]
self.package_version: str = self.data[package][2]
def find_requires(self, package: str) -> Generator:
""" Find requires that package dependees. """
@ -63,15 +63,15 @@ class Dependees(Configs):
def view_the_title(self) -> None:
print(f"The list below shows the "
f"packages that dependees on '{', '.join([p for p in self.packages])}':\n")
f"packages that dependees on '{', '.join([pkg for pkg in self.packages])}':\n")
self.packages: tuple = tuple(self.utils.apply_package_pattern(self.data, self.packages))
def view_no_dependees(self, dependees: dict) -> None:
if not dependees:
print(f"{'':>1}{self.cyan}No dependees{self.endc}")
def view_the_main_package(self, pkg: str) -> None:
print(f'{self.byellow}{pkg}{self.endc}')
def view_the_main_package(self, package: str) -> None:
print(f'{self.byellow}{package}{self.endc}')
print(f"{'':>1}{self.llc}{self.hl}", end='')
@staticmethod
@ -100,5 +100,5 @@ class Dependees(Configs):
str_requires: str = f"{'':>5}{self.llc}{self.hl} {self.violet}{requires}{self.endc}"
print(str_requires)
def view_summary_of_dependees(self, dependees: dict, pkg: str) -> None:
print(f'\n{self.grey}{len(dependees)} dependees for {pkg}{self.endc}\n')
def view_summary_of_dependees(self, dependees: dict, package: str) -> None:
print(f'\n{self.grey}{len(dependees)} dependees for {package}{self.endc}\n')