diff options
-rw-r--r-- | src/upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upgrade.c b/src/upgrade.c index 914f019..3b30fe3 100644 --- a/src/upgrade.c +++ b/src/upgrade.c @@ -54,7 +54,7 @@ int apk_do_self_upgrade(struct apk_database *db, unsigned short solver_flags) r = apk_solver_solve(db, 0, db->world, &solution, &changeset); if (r != 0) { - if (apk_flags & APK_FORCE) + if ((r > 0) && (apk_flags & APK_FORCE)) r = 0; else apk_solver_print_errors(db, solution, db->world, r); |