diff options
author | google@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-12 20:42:01 (EDT) |
---|---|---|
committer | google@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-12 20:42:01 (EDT) |
commit | 6dc8a5d00f1f5244d7c3732dbc21b3763e9066b6 (patch) | |
tree | 4b9d6b25a21478a2143fd4ff25aa579aeeeece59 /libopkg/pkg.c | |
parent | f637389e79f9fb04b73d4fe254fea63e9b077a94 (diff) |
implement --force-postinstall option, this allows forcing the execution of postinstall scripts in offline root mode
git-svn-id: http://opkg.googlecode.com/svn/trunk@559 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg.c')
-rw-r--r-- | libopkg/pkg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c index 38816d4..5b1321e 100644 --- a/libopkg/pkg.c +++ b/libopkg/pkg.c @@ -1255,7 +1255,7 @@ pkg_run_script(pkg_t *pkg, const char *script, const char *args) /* XXX: FEATURE: When conf->offline_root is set, we should run the maintainer script within a chroot environment. */ - if (conf->offline_root) { + if (conf->offline_root && !conf->force_postinstall) { opkg_msg(INFO, "Offline root mode: not running %s.%s.\n", pkg->name, script); return 0; |