From 5077685e6433d5609b9b82100e4dd18910d6affd Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Thu, 22 Nov 2012 04:18:35 -0500 Subject: Do not call sync wen installing into an offline root When installing into an offline root, calling sync() is pointless and just hurts performance. Don't let's do that. Signed-off-by: Phil Blundell git-svn-id: http://opkg.googlecode.com/svn/trunk@648 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index 36ff8eb..b091fe5 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -64,7 +64,8 @@ write_status_files_if_changed(void) opkg_msg(INFO, "Writing status file.\n"); opkg_conf_write_status_files(); pkg_write_changed_filelists(); - sync(); + if (!conf->offline_root) + sync(); } else { opkg_msg(DEBUG, "Nothing to be done.\n"); } -- cgit v0.9.1