From fe057bb7e3eb286f16b63849078dd947ddb7bafd Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 21 Apr 2023 13:35:21 +0300 Subject: [PATCH] Updated for repo version --- slpkg/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index 283600f8..75dfe808 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -472,16 +472,15 @@ class Argparse(Configs): else: for pkg in packages: for package in repo_packages: + if pkg in package or pkg == '*': if self.utils.is_option(self.flag_binaries, self.flags): - try: - repo_ver: str = self.data[pkg][0] - except KeyError: - repo_ver: str = '' + repo_ver: str = self.data[package][0] repo: str = self.binary_repo else: repo_ver: str = self.data[package][2] repo: str = self.repos.sbo_enabled_repo_name + choices += [(package, repo_ver, False, f'Package: {package}-{repo_ver} ' f'> {repo}')]