From 865da4175fda5a028ccfbb428e49384697527f03 Mon Sep 17 00:00:00 2001 From: graham.gower@gmail.com Date: Wed, 25 May 2011 20:52:15 -0400 Subject: 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 --- 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"); } -- cgit v0.9.1