Updated for binary

This commit is contained in:
Dimitris Zlatanidis 2023-03-27 23:02:33 +03:00
parent da7e36772b
commit 50f216a2f8

View file

@ -432,12 +432,14 @@ class Argparse(Configs):
else: else:
if self.utils.is_option(self.flag_binaries, self.flags): if self.utils.is_option(self.flag_binaries, self.flags):
for pkg in packages: pkg_repo: tuple = BinQueries('', self.binary_repo).package_name_with_repo()
pkg_repo = BinQueries(pkg, self.binary_repo).package_name_with_repo()
for pkg in packages:
for pr in pkg_repo: for pr in pkg_repo:
if pkg in pr[0] or pkg == '*':
repo_ver: str = BinQueries(pr[0], pr[1]).version() repo_ver: str = BinQueries(pr[0], pr[1]).version()
choices += [(pkg, repo_ver, False, f'Package: {pkg}-{repo_ver} > {pr[1]}')] choices += [(pr[0], repo_ver, False, f'Package: {pr[0]}-{repo_ver} > {pr[1]}')]
else: else:
for pkg in packages: for pkg in packages: