Updated for choose for upgrade

This commit is contained in:
Dimitris Zlatanidis 2024-04-04 10:42:22 +03:00
parent 88e118f08f
commit e81ec798ee

View file

@ -62,13 +62,19 @@ class Choose(Configs):
def choose_for_upgraded(self, data: dict, packages: list):
""" Choose packages that they will going to upgrade. """
for pkg in packages:
for package in data.keys():
for package in packages:
# for package in data.keys():
if pkg == package:
if package in data.keys():
inst_package: str = self.utils.is_package_installed(package)
inst_package_version: str = self.utils.split_package(inst_package)['version']
inst_package_build: str = self.utils.split_package(inst_package)['build']
if not inst_package_version:
inst_package_version: str = 'None'
if not inst_package_build:
inst_package_build: str = 'None'
repo_ver: str = data[package]['version']
repo_build_tag: str = data[package]['build']