Fixed for dependent version

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-05 18:57:28 +03:00
parent 8cd32d753a
commit b66a32afba

View file

@ -94,9 +94,12 @@ class RemovePackages(Configs): # pylint: disable=[R0902]
"""
for package in self.packages_for_remove:
name: str = self.utils.split_package(package)['name']
version: str = self.utils.split_package(package)['version']
for pkg, deps in self.deps_log.items():
if name in deps and pkg not in self.packages + self.dependencies:
version: str = ''
installed: str = self.utils.is_package_installed(pkg)
if installed:
version: str = self.utils.split_package(installed)['version']
self.found_dependent_packages[pkg] = version
if self.found_dependent_packages: