summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:35 (EST)
committer pixdamix@gmail.com <pixdamix@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2012-11-22 04:18:35 (EST)
commit5077685e6433d5609b9b82100e4dd18910d6affd (patch)
tree7cc75df9fa041b00df3a8b46c14a303d9d8cd229
parentbf096c1dc02e069dd91c7239674cfee4a7513b09 (diff)
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 <philb@gnu.org> git-svn-id: http://opkg.googlecode.com/svn/trunk@648 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_cmd.c3
1 files changed, 2 insertions, 1 deletions
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");
}