update_chroot: fail if --toolchain_boards= was given invalid names

This commit is contained in:
Michael Marineau 2015-04-08 17:11:12 -07:00
parent dc88c752e9
commit 629021b6de

View File

@ -188,6 +188,8 @@ gcc_set_latest_profile "$(portageq envvar CHOST)"
if [[ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" && \
-n "${FLAGS_toolchain_boards}" ]]; then
CROSS_CHOSTS=( $(get_board_chost ${FLAGS_toolchain_boards} | sort -u) )
# double check get_board_chost actually returned results, pipefail isn't set.
[[ -n "${CROSS_CHOSTS[*]}" ]] || exit 1
for cross_chost in "${CROSS_CHOSTS[@]}"; do
info "Updating cross ${cross_chost} toolchain"