mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for naming
This commit is contained in:
parent
06cf5a4ba4
commit
5d37290984
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue