diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 65c93ee7..e52de797 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -332,17 +332,17 @@ class View(Configs): # pylint: disable=[R0902] print() def missing_dependencies(self, packages: list) -> None: - """ Checks for missing dependencies. + """ View for missing dependencies. """ - not_found: dict = {} + missing_deps: dict = {} for package in packages: requires: list = self.data[package]['requires'] for req in requires: if req not in self.data: - not_found[package] = [req for req in requires if req not in self.data] - if not_found: + missing_deps[package] = [req for req in requires if req not in self.data] + if missing_deps: print('\nPackages with missing dependencies:') - for pkg, deps in not_found.items(): + for pkg, deps in missing_deps.items(): print(f"> {self.cyan}{pkg}{self.endc}: Requires " f"({len(deps)}) -> {self.red}{', '.join(deps)}{self.endc}")