mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Fix for all repos data
This commit is contained in:
parent
ebf211e185
commit
30a6412115
1 changed files with 15 additions and 6 deletions
|
@ -81,10 +81,19 @@ class Choose(Configs):
|
|||
|
||||
def choose_for_others(self, data: dict, packages: list):
|
||||
""" Choose packages for others methods like install, tracking etc. """
|
||||
for pkg in packages:
|
||||
for package in data.keys():
|
||||
if self.repository == '*':
|
||||
for pkg in packages:
|
||||
for name, repo in data.items():
|
||||
for package in repo.keys():
|
||||
if pkg in package or pkg == '*':
|
||||
version: str = repo[package]['version']
|
||||
self.choices.extend([(package, version, False, f'Package: {package}-{version} '
|
||||
f'> {name}')])
|
||||
|
||||
if pkg in package or pkg == '*':
|
||||
version: str = data[package]['version']
|
||||
self.choices.extend([(package, version, False, f'Package: {package}-{version} '
|
||||
f'> {self.repository}')])
|
||||
else:
|
||||
for pkg in packages:
|
||||
for package in data.keys():
|
||||
if pkg in package or pkg == '*':
|
||||
version: str = data[package]['version']
|
||||
self.choices.extend([(package, version, False, f'Package: {package}-{version} '
|
||||
f'> {self.repository}')])
|
||||
|
|
Loading…
Reference in a new issue