From 6246e9fa0f43c2d2ffb3ffdb9f8d4034b0c5c24f Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 7 May 2023 17:08:21 +0300 Subject: [PATCH] Fixed for version --- slpkg/search.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: