From 5246b0ab3cecf9dc760540e41ec85610a4d623a7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 5 May 2024 11:54:10 +0300 Subject: [PATCH] Updated for sorted Signed-off-by: Dimitris Zlatanidis --- ChangeLog.txt | 3 ++- slpkg/search.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 46ff3c2f..2f987edb 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,6 @@ ## slpkg - ChangeLog -### 5.0.7 - 01/05/2024 +### 5.0.7 - 05/05/2024 - Fixed: * Fixed raise error message instead toml error message @@ -9,6 +9,7 @@ - Updated: * Improved code quality * Updated for check gpg key imported + * Updated for sort the output of the search command (Thanks to marav) - Added: * Total file size with find command diff --git a/slpkg/search.py b/slpkg/search.py index 64b1ac75..3f47832c 100644 --- a/slpkg/search.py +++ b/slpkg/search.py @@ -59,7 +59,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902] repo (str): repository name. """ for package in self.packages: - for name, data_pkg in self.repo_data.items(): + for name, data_pkg in sorted(self.repo_data.items()): if package in name or package == '*' or self.is_not_case_sensitive(package, name): self.matching += 1