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_dot.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_dot.c')
-rw-r--r-- | src/app_dot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app_dot.c b/src/app_dot.c index 0a86e45..64c3f87 100644 --- a/src/app_dot.c +++ b/src/app_dot.c @@ -139,6 +139,7 @@ static int dump(struct apk_database *db, const char *match, struct apk_name *nam if (!name) return 0; + apk_name_sorted_providers(name); foreach_array_item(p, name->providers) dump_pkg(ctx, p->pkg); return 0; |