implement --force-postinstall option, this allows forcing the execution of postinstal...
[oweals/opkg-lede.git] / libopkg / pkg.c
index 38816d4af6034e8d391e3b696ffc5452e7444b15..5b1321e6c7c544891b535b34f0d0862c31b94d07 100644 (file)
@@ -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;