solver: return error code if things fail during package install
parent
f76535cb5e
commit
3f098e7d8c
|
@ -1287,8 +1287,7 @@ int apk_solver_commit(struct apk_database *db,
|
||||||
|
|
||||||
if (r == 0 || (apk_flags & APK_FORCE)) {
|
if (r == 0 || (apk_flags & APK_FORCE)) {
|
||||||
/* Success -- or forced installation of bad graph */
|
/* Success -- or forced installation of bad graph */
|
||||||
apk_solver_commit_changeset(db, &changeset, world);
|
r = apk_solver_commit_changeset(db, &changeset, world);
|
||||||
r = 0;
|
|
||||||
} else {
|
} else {
|
||||||
/* Failure -- print errors */
|
/* Failure -- print errors */
|
||||||
apk_solver_print_errors(db, solution, world, r);
|
apk_solver_print_errors(db, solution, world, r);
|
||||||
|
|
Loading…
Reference in New Issue