Commit 3f098e7d authored by Timo Teräs's avatar Timo Teräs

solver: return error code if things fail during package install

parent f76535cb
......@@ -1287,8 +1287,7 @@ int apk_solver_commit(struct apk_database *db,
if (r == 0 || (apk_flags & APK_FORCE)) {
/* Success -- or forced installation of bad graph */
apk_solver_commit_changeset(db, &changeset, world);
r = 0;
r = apk_solver_commit_changeset(db, &changeset, world);
} else {
/* Failure -- print errors */
apk_solver_print_errors(db, solution, world, r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment