diff options
author | graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-10-12 23:23:41 (EDT) |
---|---|---|
committer | graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-10-12 23:23:41 (EDT) |
commit | 3b558bf0e650e9dd947fd930229c76e1e2a3955a (patch) | |
tree | 427e666bc9b73d552accf880b4898eb4059d9470 /libopkg | |
parent | 989997d1488ad22b1aabe0ae34324d56b4f72fc7 (diff) |
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
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |