Updated for sorted

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-05 11:54:10 +03:00
parent 57c53a15c0
commit 5246b0ab3c
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
## slpkg - ChangeLog ## slpkg - ChangeLog
### 5.0.7 - 01/05/2024 ### 5.0.7 - 05/05/2024
- Fixed: - Fixed:
* Fixed raise error message instead toml error message * Fixed raise error message instead toml error message
@ -9,6 +9,7 @@
- Updated: - Updated:
* Improved code quality * Improved code quality
* Updated for check gpg key imported * Updated for check gpg key imported
* Updated for sort the output of the search command (Thanks to marav)
- Added: - Added:
* Total file size with find command * Total file size with find command

View file

@ -59,7 +59,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902]
repo (str): repository name. repo (str): repository name.
""" """
for package in self.packages: 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): if package in name or package == '*' or self.is_not_case_sensitive(package, name):
self.matching += 1 self.matching += 1