From 3b558bf0e650e9dd947fd930229c76e1e2a3955a Mon Sep 17 00:00:00 2001 From: graham.gower@gmail.com Date: Wed, 12 Oct 2011 23:23:41 -0400 Subject: Don't configure packages when in offline root mode. When installing into an offline root, packages should be marked "unpacked" not "installed". Resolves Issue #82. git-svn-id: http://opkg.googlecode.com/svn/trunk@627 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index d742d7b..6160b79 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -412,6 +412,10 @@ opkg_configure_packages(char *pkg_name) opkg_intercept_t ic; int r, err = 0; + if (conf->offline_root && !conf->force_postinstall) { + opkg_msg(INFO, "Offline root mode: not configuring unpacked packages.\n"); + return 0; + } opkg_msg(INFO, "Configuring unpacked packages.\n"); all = pkg_vec_alloc(); -- cgit v0.9.1