xbps-src: reduce install_dependencies_pkg() by using a conditional.
This commit is contained in:
parent
9e89257c0c
commit
5379eff94b
|
@ -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
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue