Fixed for find installed

This commit is contained in:
Dimitris Zlatanidis 2023-04-13 13:09:52 +03:00
parent 201e0b92fd
commit dd819af5aa

View file

@ -21,7 +21,7 @@ class FindInstalled(Configs):
self.endc: str = self.color['endc']
self.grey: str = self.color['grey']
self.installed: list = self.utils.installed_packages
self.installed: dict = self.utils.installed_packages
def find(self, packages: list) -> None:
""" Find the packages. """
@ -31,7 +31,7 @@ class FindInstalled(Configs):
f'that contains \'{", ".join([p for p in packages])}\' files:\n')
for pkg in packages:
for package in self.installed:
for package in self.installed.values():
if pkg in package or pkg == '*':
matching.append(package)