mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for coding style
This commit is contained in:
parent
d0fbab31c2
commit
952e61866c
1 changed files with 2 additions and 3 deletions
|
@ -30,12 +30,11 @@ class Upgrade(Configs):
|
||||||
encoding='utf-8',
|
encoding='utf-8',
|
||||||
level=logging.INFO)
|
level=logging.INFO)
|
||||||
|
|
||||||
def packages(self) -> Generator[str, None, None]:
|
def packages(self) -> Generator:
|
||||||
""" Returns the upgradable packages. """
|
""" Returns the upgradable packages. """
|
||||||
repo_packages_names: list = list(self.data.keys())
|
|
||||||
|
|
||||||
# Returns the matched packages between two lists.
|
# Returns the matched packages between two lists.
|
||||||
packages: list = list(set(self.utils.installed_package_names) & set(repo_packages_names))
|
packages: list = list(set(self.utils.installed_package_names) & set(list(self.data.keys())))
|
||||||
|
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue