builddep_funcs.sh: always look if there are more deps.

--HG--
extra : convert_revision : 16b1ab98622f45bab123a388640dad14fc410f6c
This commit is contained in:
Juan RP 2009-02-18 20:10:11 +01:00
parent d6e2d02e9f
commit 08630476d6

View File

@ -71,17 +71,11 @@ install_pkg_deps()
[ -n "$prev_pkg" ] && unset prev_pkg
#
# Check if dependency needs more deps.
# Iterate again, this will check if there are more
# required deps for current pkg.
#
check_build_depends_pkg $j
if [ $? -eq 0 ]; then
install_pkg_deps $j $curpkg
prev_pkg="$j"
else
echo "=> Installing $curpkgname dependency: $j"
jname=$(xbps-pkgdb getpkgname ${j})
install_pkg $jname auto
fi
install_pkg_deps $j $curpkg
prev_pkg="$j"
done
install_pkg $curpkgname auto