Removed doubles

This commit is contained in:
Dimitris Zlatanidis 2023-04-04 20:45:56 +03:00
parent 15e10a5c06
commit 4a6bc7bb69
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
4.7.4 - 04/04/2023 4.7.4 - 04/04/2023
Fixed: Fixed:
- Python typing hints - Python typing hints
- Upgrade packages
Updated: Updated:
- For upgradable color in installation - For upgradable color in installation

View file

@ -27,9 +27,9 @@ class Upgrade(Configs):
def packages(self) -> Generator[str, None, None]: def packages(self) -> Generator[str, None, None]:
""" Compares version of packages and returns the maximum. """ """ Compares version of packages and returns the maximum. """
if self.utils.is_option(self.flag_bin_repository, self.flags): 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: else:
repo_packages: Generator = SBoQueries('').sbos() repo_packages: list = list(SBoQueries('').sbos())
for pkg in self.all_installed: for pkg in self.all_installed:
inst_package: str = self.utils.split_binary_pkg(pkg)[0] inst_package: str = self.utils.split_binary_pkg(pkg)[0]