solver: return error code if things fail during package install

cute-signatures
Timo Teräs 2011-09-28 14:04:02 +03:00
parent f76535cb5e
commit 3f098e7d8c
1 changed files with 1 additions and 2 deletions

View File

@ -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);