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
1 changed files with 5 additions and 9 deletions

View File

@ -235,16 +235,12 @@ install_dependencies_pkg()
for i in ${build_depends}; do for i in ${build_depends}; do
install_pkg_from_repos \"${i}\" install_pkg_from_repos \"${i}\"
done 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 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
} }
# #