From d1c25607821d63cf9a23eff4982938b5003c2ec8 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 10 May 2024 22:46:13 +0300 Subject: [PATCH] Updated method Signed-off-by: Dimitris Zlatanidis --- slpkg/views/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}")