From 4a6bc7bb69e32619e0b3028f39c3495490a1869f Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 4 Apr 2023 20:45:56 +0300 Subject: [PATCH] Removed doubles --- ChangeLog.txt | 1 + slpkg/upgrade.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 20c62fbf..7d37d175 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,7 @@ 4.7.4 - 04/04/2023 Fixed: - Python typing hints +- Upgrade packages Updated: - For upgradable color in installation diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 1646391f..365154d4 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -27,9 +27,9 @@ class Upgrade(Configs): def packages(self) -> Generator[str, None, None]: """ Compares version of packages and returns the maximum. """ if self.utils.is_option(self.flag_bin_repository, self.flags): - repo_packages: Generator = BinQueries('', self.repo).all_package_names_by_repo() + repo_packages: list = list(BinQueries('', self.repo).all_package_names_by_repo()) else: - repo_packages: Generator = SBoQueries('').sbos() + repo_packages: list = list(SBoQueries('').sbos()) for pkg in self.all_installed: inst_package: str = self.utils.split_binary_pkg(pkg)[0]