summaryrefslogtreecommitdiff
path: root/src/del.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-12 17:00:43 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-13 18:22:00 +0300
commit25ff68a87e3264b6dfdc846823d4912b4dd870b2 (patch)
treecd0d63eba30d233f52d5bed6e8a89cb64bf7de82 /src/del.c
parent59678309ea7350a159a3f5ee61c2fb5218dee6d5 (diff)
downloadapk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.gz
apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.bz2
apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.tar.xz
apk-tools-25ff68a87e3264b6dfdc846823d4912b4dd870b2.zip
solver: prune broken world dependencies with --force
mostly useful for reboot, when all packages are not available.
Diffstat (limited to 'src/del.c')
-rw-r--r--src/del.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/del.c b/src/del.c
index ed5f63e..305843d 100644
--- a/src/del.c
+++ b/src/del.c
@@ -159,7 +159,7 @@ static int del_main(void *pctx, struct apk_database *db, int argc, char **argv)
}
r = apk_solver_solve(db, 0, ctx->world, &changeset);
- if (r == 0 || (apk_flags & APK_FORCE)) {
+ if (r == 0) {
/* check for non-deleted package names */
for (i = 0; i < changeset.changes->num; i++) {
struct apk_package *pkg = changeset.changes->item[i].new_pkg;