summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-05-25 20:52:15 (EDT)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-05-25 20:52:15 (EDT)
commit865da4175fda5a028ccfbb428e49384697527f03 (patch)
treea75250177993dcbc7f4125e5fcd217623740884c /libopkg
parent1e0e1f2f283ffdedb1c0d05c8e572074acf6baa8 (diff)
sync() after writing out the status info.
This decreases the likelihood of a corrupted database due to power loss. git-svn-id: http://opkg.googlecode.com/svn/trunk@623 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c
index ce7cf5e..d742d7b 100644
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -64,6 +64,7 @@ write_status_files_if_changed(void)
opkg_msg(INFO, "Writing status file.\n");
opkg_conf_write_status_files();
pkg_write_changed_filelists();
+ sync();
} else {
opkg_msg(DEBUG, "Nothing to be done.\n");
}