summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-22 16:19:12 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-22 16:19:12 +0300
commit9b63730d848677672aaa4606a28de4fc17da1dcb (patch)
treed48ca9b5e21e40bf741f4a8e2f58d2b7f8d4d930 /src/state.c
parent9dc60e8d1cb651617b13d1e63974a1a515021987 (diff)
downloadapk-tools-9b63730d848677672aaa4606a28de4fc17da1dcb.tar.gz
apk-tools-9b63730d848677672aaa4606a28de4fc17da1dcb.tar.bz2
apk-tools-9b63730d848677672aaa4606a28de4fc17da1dcb.tar.xz
apk-tools-9b63730d848677672aaa4606a28de4fc17da1dcb.zip
state: fix previous commit to show OK when everything is ok
Diffstat (limited to 'src/state.c')
-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,