Updated for names

This commit is contained in:
Dimitris Zlatanidis 2024-04-04 14:21:37 +03:00
parent fa256aeabe
commit 7b7c8db3a2

View file

@ -84,12 +84,12 @@ class Choose(Configs):
""" Choose packages for others methods like install, tracking etc. """
if self.repository == '*':
for pkg in packages:
for name, repo in data.items():
for package in repo.keys():
for repo_name, repo_data in data.items():
for package in repo_data.keys():
if pkg in package or pkg == '*':
version: str = repo[package]['version']
version: str = repo_data[package]['version']
self.choices.extend([(package, version, False, f'Package: {package}-{version} '
f'> {name}')])
f'> {repo_name}')])
else:
for pkg in packages: