Updated for methods

This commit is contained in:
Dimitris Zlatanidis 2023-05-07 16:45:22 +03:00
parent 34386dac61
commit d9a84f81e8

View file

@ -30,17 +30,20 @@ class SearchPackage(Configs):
f'packages that contains \'{", ".join([p for p in self.packages])}\':\n')
if self.repository == '*':
for repo, value in self.repos.repositories.items():
if value[0]: # Check if the repository is enabled
if self.utils.is_binary_repo(repo):
self.search_into_binary_repositories(repo)
else:
self.search_into_slackbuild_repositories(repo)
self.search_to_enabled_repositories()
else:
self.search_for_packages()
self.summary_of_searching()
def search_to_enabled_repositories(self):
for repo, value in self.repos.repositories.items():
if value[0]: # Check if the repository is enabled
if self.utils.is_binary_repo(repo):
self.search_into_binary_repositories(repo)
else:
self.search_into_slackbuild_repositories(repo)
def search_into_binary_repositories(self, repo):
data: dict = BinQueries(repo).repository_data()
for package in self.packages: