update_chroot: pass env vars to cros_setup_toolchain.

BUG=chromium-os:33007
TEST=remote trybot (chromiumos-sdk) with this CL.

Change-Id: If8a0de45eebf158bfc51aa87348b3c96c6c2626e
Reviewed-on: https://gerrit.chromium.org/gerrit/33848
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: asharif <asharif@chromium.org>
Tested-by: asharif <asharif@chromium.org>
This commit is contained in:
Ahmad Sharif 2012-09-21 20:12:45 -07:00 committed by Gerrit
parent e81a23207f
commit 89b8a8bf85

View File

@ -95,7 +95,7 @@ if [ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" ]; then
TOOLCHAIN_FLAGS+=( --nousepkg ) TOOLCHAIN_FLAGS+=( --nousepkg )
fi fi
# Expand the path before sudo, as root doesn't have the same path magic. # Expand the path before sudo, as root doesn't have the same path magic.
sudo $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}" sudo -E $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}"
fi fi
# Build cros_workon packages when they are changed. # Build cros_workon packages when they are changed.