mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for methods
This commit is contained in:
parent
34386dac61
commit
d9a84f81e8
1 changed files with 9 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue