summaryrefslogtreecommitdiffstats
path: root/opkg_install.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:20:45 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:20:45 (EST)
commit8b44d858a9895bfaec1f78562c9619c5652d9056 (patch)
tree6a47e7b0a01f36c6cf09262a86d811cedfe83de9 /opkg_install.c
parent9f88cb5044297003623fb63d47836c1167322417 (diff)
opkg: add a status flag to record if the package was automatically installed to
satisfy a dependency git-svn-id: http://opkg.googlecode.com/svn/trunk@24 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'opkg_install.c')
-rw-r--r--opkg_install.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/opkg_install.c b/opkg_install.c
index 242db59..b278724 100644
--- a/opkg_install.c
+++ b/opkg_install.c
@@ -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;