diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-07-26 14:01:05 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-07-26 14:10:07 +0300 |
commit | 083ea5a13b421dc8d97283df918abb81a4e21e88 (patch) | |
tree | 16e875d4062aa148a68533b5386b6d768450438d /src/commit.c | |
parent | d212aca070267ee742f22aab891960da4f552089 (diff) | |
download | apk-tools-083ea5a13b421dc8d97283df918abb81a4e21e88.tar.gz apk-tools-083ea5a13b421dc8d97283df918abb81a4e21e88.tar.bz2 apk-tools-083ea5a13b421dc8d97283df918abb81a4e21e88.tar.xz apk-tools-083ea5a13b421dc8d97283df918abb81a4e21e88.zip |
db: add some error checking to database state write
Make errors more observable. Unfortunately full rollback is
non-trivial to implement. This is something to be fixed with
the v3 database format.
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 640c135..d53ae8a 100644 --- a/src/commit.c +++ b/src/commit.c @@ -351,7 +351,7 @@ int apk_solver_commit_changeset(struct apk_database *db, all_done: apk_dependency_array_copy(&db->world, world); - apk_db_write_config(db); + if (apk_db_write_config(db) != 0) errors++; run_commit_hooks(db, POST_COMMIT_HOOK); if (!db->performing_self_upgrade) { |