Updated for load db

This commit is contained in:
Dimitris Zlatanidis 2023-05-23 11:44:55 +03:00
parent a011d488f7
commit f0bdb256bf

View file

@ -593,14 +593,15 @@ class Menu(Configs):
command: str = Menu.find.__name__
if len(self.args) >= 2:
self.load_database()
self.check.is_database_empty()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
self.load_database()
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
if self.utils.is_option(self.flag_searches, self.flags):
self.load_database()
packages: list = self.choose.packages(self.data, packages, command)
find = FindInstalled(self.flags, packages)