diff --git a/slpkg/search.py b/slpkg/search.py index d26022ea..433bb776 100644 --- a/slpkg/search.py +++ b/slpkg/search.py @@ -37,8 +37,8 @@ class SearchPackage(Configs): self.summary_of_searching() def search_to_all_repositories(self) -> None: - for repo, value in self.repos.repositories.items(): - if value[0]: # Check if the repository is enabled + for repo, enable in self.repos.repositories.items(): + if enable: # Check if the repository is enabled if self.utils.is_binary_repo(repo): data: dict = BinQueries(repo).repository_data() self.search_for_the_packages(data, repo)