common/build_dependencies.sh: don't ignore subpkgs in host while cross

compiling, this falls (obviously) apart if it is missing.
See e.g. https://build.voidlinux.org/builders/aarch64-musl_builder/builds/22678/steps/shell_3/logs/stdio
This commit is contained in:
John 2019-10-15 18:58:01 +02:00 committed by John Zimmermann
parent 0dfca458c4
commit 1c16711b3f

View File

@ -169,7 +169,7 @@ install_pkg_deps() {
break
fi
done
if [[ $found -eq 1 ]]; then
if [[ $found -eq 1 ]] && [[ -z "$cross" ]]; then
echo " [host] ${_vpkg}: not found (subpkg, ignored)"
else
echo " [host] ${_vpkg}: not found"