Updated for check db

This commit is contained in:
Dimitris Zlatanidis 2023-03-21 22:52:41 +02:00
parent fb6bc9cd6d
commit 3d4510cb82

View file

@ -553,12 +553,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
self.check.is_package_unsupported(packages)
@ -572,12 +572,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
self.check.is_package_unsupported(packages)
@ -591,12 +591,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
download = Download(self.directory, self.flags)
download.packages(packages)
@ -608,12 +608,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.is_installed(packages, self.file_pattern)
remove = RemovePackages(packages, self.flags, self.file_pattern)
@ -626,13 +626,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
find = FindInstalled()
find.find(packages, self.file_pattern)
raise SystemExit()
@ -643,12 +642,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
view = ViewPackage(self.flags)
@ -661,13 +660,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
search = SearchPackage()
search.package(packages)
raise SystemExit()
@ -678,12 +676,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
dependees = Dependees(packages, self.flags)
@ -696,12 +694,12 @@ class Argparse(Configs):
if len(self.args) >= 2:
self.check.is_empty_database()
packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_searches, self.flags):
packages: list = self.choose_packages(packages, command)
self.check.is_empty_database()
self.check.exists_in_the_database(packages)
tracking = Tracking(self.flags)