diff --git a/slpkg/choose_packages.py b/slpkg/choose_packages.py index f66e5ada..1c09714c 100644 --- a/slpkg/choose_packages.py +++ b/slpkg/choose_packages.py @@ -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: