xbps-src: reduce install_dependencies_pkg() by using a conditional.

This commit is contained in:
Juan RP 2011-10-26 19:47:52 +02:00
parent 9e89257c0c
commit 5379eff94b

View file

@ -235,16 +235,12 @@ install_dependencies_pkg()
for i in ${build_depends}; do
install_pkg_from_repos \"${i}\"
done
return 0
else
# Install direct and indirect build dependencies from source.
for i in ${build_depends}; do
install_pkg_deps "${i}" "${pkg}" || return 1
done
fi
# Install direct and indirect build dependencies from source.
for i in ${build_depends}; do
install_pkg_deps "${i}" "${pkg}"
if [ $? -eq 1 ]; then
return 1
fi
done
}
#