diff options
-rw-r--r-- | libopkg/opkg_cmd.c | 3 |
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"); } |