aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-21 21:19:15 +0000
committerJason Woodward2005-01-21 21:19:15 +0000
commit4fb7a376bf25d892d144129c628e6f8409cab7a8 (patch)
treeeeb5fad8df8da79ee1e82d3706e4663603034037 /src
parent4786424804b7f95bcf1fe1ff008614024d225d7e (diff)
downloadslapt-get-4fb7a376bf25d892d144129c628e6f8409cab7a8.tar.gz
fixed recursive dependency bug
Diffstat (limited to 'src')
-rw-r--r--src/package.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/package.c b/src/package.c
index 8d19e51..51ed6a0 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1175,15 +1175,15 @@ int get_pkg_dependencies(const rc_config *global_config,struct pkg_list *avail_p
if( (get_newest_pkg(deps,tmp_pkg->name) == NULL) ){
int dep_check_return;
+ /* add tmp_pkg to deps */
+ add_pkg_to_pkg_list(deps,tmp_pkg);
+
/* now check to see if tmp_pkg has dependencies */
dep_check_return = get_pkg_dependencies(global_config,avail_pkgs,installed_pkgs,tmp_pkg,deps);
if( dep_check_return == -1 && global_config->ignore_dep == FALSE ){
return -1;
}
- /* add tmp_pkg to deps */
- add_pkg_to_pkg_list(deps,tmp_pkg);
-
}else{
#if DEBUG == 1
printf("%s already exists in dep list\n",tmp_pkg->name);