opkg: add a status flag to record if the package was automatically installed to
[oweals/opkg-lede.git] / opkg_install.c
index 242db59c617b6f6cf4b16437109354ea01d109d7..b278724a256e436122de3737b078172613984d22 100644 (file)
@@ -413,6 +413,9 @@ int satisfy_dependencies_for(opkg_conf_t *conf, pkg_t *pkg)
              && (dep->state_status != SS_UNPACKED)) {
                opkg_message(conf, OPKG_DEBUG2,"Function: %s calling opkg_install_pkg \n",__FUNCTION__);
               err = opkg_install_pkg(conf, dep,0);
+              /* mark this package as having been automatically installed to
+               * satisfy a dependancy */
+              dep->auto_installed = 1;
               if (err) {
                    pkg_vec_free(depends);
                    return err;