Updated for repo version

This commit is contained in:
Dimitris Zlatanidis 2023-04-21 13:35:21 +03:00
parent daea0afbd5
commit fe057bb7e3

View file

@ -472,16 +472,15 @@ class Argparse(Configs):
else: else:
for pkg in packages: for pkg in packages:
for package in repo_packages: for package in repo_packages:
if pkg in package or pkg == '*': if pkg in package or pkg == '*':
if self.utils.is_option(self.flag_binaries, self.flags): if self.utils.is_option(self.flag_binaries, self.flags):
try: repo_ver: str = self.data[package][0]
repo_ver: str = self.data[pkg][0]
except KeyError:
repo_ver: str = ''
repo: str = self.binary_repo repo: str = self.binary_repo
else: else:
repo_ver: str = self.data[package][2] repo_ver: str = self.data[package][2]
repo: str = self.repos.sbo_enabled_repo_name repo: str = self.repos.sbo_enabled_repo_name
choices += [(package, repo_ver, False, f'Package: {package}-{repo_ver} ' choices += [(package, repo_ver, False, f'Package: {package}-{repo_ver} '
f'> {repo}')] f'> {repo}')]