diff --git a/slpkg/search.py b/slpkg/search.py index 7b55d21f..572060cb 100644 --- a/slpkg/search.py +++ b/slpkg/search.py @@ -60,7 +60,11 @@ class SearchPackage(Configs): if package in name or package == '*': self.matching += 1 - self.data_dict[self.matching] = (repo, name, data_pkg[0]) + + if self.is_binary: + self.data_dict[self.matching] = (repo, name, data_pkg[0]) + else: + self.data_dict[self.matching] = (repo, name, data_pkg[2]) def summary_of_searching(self) -> None: if self.matching: