aboutsummaryrefslogtreecommitdiffstats
path: root/src/action.c
diff options
context:
space:
mode:
authorJason Woodward2010-06-09 19:52:13 -0400
committerJason Woodward2010-06-09 19:52:13 -0400
commit9a371df4c02189cd1fabc1e2576162e75e43f756 (patch)
tree427d367b9446e506ead2af4a54377d648d0c9321 /src/action.c
parent33eb4afdaaae102ce44232d28c227ba98318d5d3 (diff)
downloadslapt-get-9a371df4c02189cd1fabc1e2576162e75e43f756.tar.gz
updated slapt_is_required_by
make slapt_is_required_by properly account for alternative/conditional dependencies as well as be aware of what is to be installed and removed.
Diffstat (limited to 'src/action.c')
-rw-r--r--src/action.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/action.c b/src/action.c
index 2a7ad07..5f3a1ef 100644
--- a/src/action.c
+++ b/src/action.c
@@ -278,7 +278,10 @@ void slapt_pkg_action_remove(const slapt_rc_config *global_config,
}
- deps = slapt_is_required_by(global_config,avail_pkgs,pkg);
+ deps = slapt_is_required_by(global_config,
+ avail_pkgs, installed_pkgs,
+ tran->install_pkgs, tran->remove_pkgs,
+ pkg);
for (c = 0; c < deps->pkg_count; ++c) {
slapt_pkg_info_t *dep = deps->pkgs[c];