mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed for dependent version
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
8cd32d753a
commit
b66a32afba
1 changed files with 4 additions and 1 deletions
|
@ -94,9 +94,12 @@ class RemovePackages(Configs): # pylint: disable=[R0902]
|
||||||
"""
|
"""
|
||||||
for package in self.packages_for_remove:
|
for package in self.packages_for_remove:
|
||||||
name: str = self.utils.split_package(package)['name']
|
name: str = self.utils.split_package(package)['name']
|
||||||
version: str = self.utils.split_package(package)['version']
|
|
||||||
for pkg, deps in self.deps_log.items():
|
for pkg, deps in self.deps_log.items():
|
||||||
if name in deps and pkg not in self.packages + self.dependencies:
|
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
|
self.found_dependent_packages[pkg] = version
|
||||||
|
|
||||||
if self.found_dependent_packages:
|
if self.found_dependent_packages:
|
||||||
|
|
Loading…
Reference in a new issue