summaryrefslogtreecommitdiff
path: root/src/app_del.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-04-26 13:13:32 +0300
committerTimo Teräs <timo.teras@iki.fi>2023-04-26 13:13:32 +0300
commit06fef8ad8a936269a1868cbe1421ac72797f9a3e (patch)
treea51befaac7507975f545b4dee887cbda308cd5df /src/app_del.c
parent551f4683df801e63286f0c5b5eed40e2bb349578 (diff)
downloadapk-tools-06fef8ad8a936269a1868cbe1421ac72797f9a3e.tar.gz
apk-tools-06fef8ad8a936269a1868cbe1421ac72797f9a3e.tar.bz2
apk-tools-06fef8ad8a936269a1868cbe1421ac72797f9a3e.tar.xz
apk-tools-06fef8ad8a936269a1868cbe1421ac72797f9a3e.zip
db: fix apk_db_foreach_matching_name to match all without args
This is a fixup to the backport commit 67f5a753: db, apps: sort display results based on package names This makes apk_db_foreach_matching_name() act consistently on between 2.14-stable and master. And updates the call sites where differing behaviour is needed, and fixes dot and other call sites to work again. fixes #10893
Diffstat (limited to 'src/app_del.c')
-rw-r--r--src/app_del.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_del.c b/src/app_del.c
index 06deb43..e5c6aab 100644
--- a/src/app_del.c
+++ b/src/app_del.c
@@ -145,7 +145,7 @@ static int del_main(void *pctx, struct apk_database *db, struct apk_string_array
int r = 0;
apk_dependency_array_copy(&ctx->world, db->world);
- apk_db_foreach_matching_name(db, args, delete_name, ctx);
+ if (args->num) apk_db_foreach_matching_name(db, args, delete_name, ctx);
if (ctx->errors) return ctx->errors;
r = apk_solver_solve(db, 0, ctx->world, &changeset);