mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Fixed for find installed
This commit is contained in:
parent
201e0b92fd
commit
dd819af5aa
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class FindInstalled(Configs):
|
||||||
self.endc: str = self.color['endc']
|
self.endc: str = self.color['endc']
|
||||||
self.grey: str = self.color['grey']
|
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:
|
def find(self, packages: list) -> None:
|
||||||
""" Find the packages. """
|
""" Find the packages. """
|
||||||
|
@ -31,7 +31,7 @@ class FindInstalled(Configs):
|
||||||
f'that contains \'{", ".join([p for p in packages])}\' files:\n')
|
f'that contains \'{", ".join([p for p in packages])}\' files:\n')
|
||||||
|
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
for package in self.installed:
|
for package in self.installed.values():
|
||||||
if pkg in package or pkg == '*':
|
if pkg in package or pkg == '*':
|
||||||
matching.append(package)
|
matching.append(package)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue