summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index c342c2f..f539b3b 100644
--- a/src/state.c
+++ b/src/state.c
@@ -712,7 +712,7 @@ int apk_state_commit(struct apk_state *state,
if (!(apk_flags & APK_SIMULATE) && prog.done.packages != 0)
apk_db_write_config(db);
- if (r != 0)
+ if (r == 0)
apk_message("OK: %d packages, %d dirs, %d files",
db->installed.stats.packages,
db->installed.stats.dirs,