diff options
author | Timo Teräs <timo.teras@iki.fi> | 2023-03-05 12:15:56 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2023-04-11 20:47:43 +0300 |
commit | 58fa82642e1a155e92a218a58753974587b3b956 (patch) | |
tree | a83a3428e7fa9bf4a073baa51c85e0edf94f9d5a /src/app_list.c | |
parent | 18b8d1e8ad877eb1eaad5216b821c0fb8394c76b (diff) | |
download | apk-tools-58fa82642e1a155e92a218a58753974587b3b956.tar.gz apk-tools-58fa82642e1a155e92a218a58753974587b3b956.tar.bz2 apk-tools-58fa82642e1a155e92a218a58753974587b3b956.tar.xz apk-tools-58fa82642e1a155e92a218a58753974587b3b956.zip |
db, apps: sort packages by pkgname and pkgver
This will also fix "search" to display one match from each principal
pkgname group. "search -e vim" will now show both vim and gvim.
fixes #10864
fixes #10777
Diffstat (limited to 'src/app_list.c')
-rw-r--r-- | src/app_list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app_list.c b/src/app_list.c index 13ab0a7..fed9aa9 100644 --- a/src/app_list.c +++ b/src/app_list.c @@ -164,6 +164,7 @@ static int print_result(struct apk_database *db, const char *match, struct apk_n if (!name) return 0; + apk_name_sorted_providers(name); if (ctx->match_depends) { struct apk_name **pname; foreach_array_item(pname, name->rdepends) |