summaryrefslogtreecommitdiff
path: root/src/solver.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-09-28 14:04:02 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-09-28 14:04:02 +0300
commit3f098e7d8c47f34dd0438dcb63abb6b0a5f2332e (patch)
treee4e30669936e97abc3f8ded11c3d31ab8631590b /src/solver.c
parentf76535cb5e09d447fb72313b244840ead42da1dd (diff)
downloadapk-tools-3f098e7d8c47f34dd0438dcb63abb6b0a5f2332e.tar.gz
apk-tools-3f098e7d8c47f34dd0438dcb63abb6b0a5f2332e.tar.bz2
apk-tools-3f098e7d8c47f34dd0438dcb63abb6b0a5f2332e.tar.xz
apk-tools-3f098e7d8c47f34dd0438dcb63abb6b0a5f2332e.zip
solver: return error code if things fail during package install
Diffstat (limited to 'src/solver.c')
-rw-r--r--src/solver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/solver.c b/src/solver.c
index a3530d0..8832c23 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -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);