Updated for naming

This commit is contained in:
Dimitris Zlatanidis 2023-05-13 17:00:03 +03:00
parent 06cf5a4ba4
commit 5d37290984

View file

@ -33,9 +33,9 @@ class Upgrade(Configs):
""" Returns the upgradable packages. """
# Returns the matched packages between two lists.
packages: tuple = tuple(set(self.utils.installed_packages.keys()) & set(self.data.keys()))
matched_packages: tuple = tuple(set(self.utils.installed_packages.keys()) & set(self.data.keys()))
for package in packages:
for package in matched_packages:
if self.is_package_upgradeable(package):
yield package
@ -51,11 +51,9 @@ class Upgrade(Configs):
repo_package_version: str = self.data[name]['version']
if self.is_binary and self.data.get(name):
# repo_package_version: str = self.data[name]['version']
repo_package: str = self.data[name]['package']
repo_package_build: str = self.utils.split_package(repo_package)['build']
else:
# repo_package_version: str = self.data[name]['version']
repo_location: str = self.data[name]['location']
repo_package_build: str = self.utils.read_slackbuild_build_tag(
name, repo_location, self.repository)