Revert "Improve Fedora build host support."

This reverts commit 591059ffd3.

Change-Id: I8ad5bde2eabe12c6575d51e7443d9b46521c0928
This commit is contained in:
Robert Collins 2013-05-03 08:15:17 +12:00
parent 55993863fc
commit d119c28f49
2 changed files with 2 additions and 8 deletions

View File

@ -25,11 +25,6 @@ export LANG=C
export DIB_ARGS="$@"
export DIB_ENV=$(export)
# Fedora and others don't always have /usr/local/bin in $PATH
if [[ ! "$PATH" == */usr/local/bin* ]] ; then
export PATH="${PATH}:/usr/local/bin/"
fi
SCRIPTNAME=$(basename $0)
SCRIPT_HOME=$(dirname $0)
export _LIB=$(dirname $0)/../lib

View File

@ -106,9 +106,8 @@ function mount_proc_dev_sys () {
# Helper function to run a command inside the chroot
function run_in_target() {
# Explicitly set PATH to prevent sudo from resetting it
# and -E to preserve http_proxy
sudo -E PATH=${PATH} chroot $TMP_MOUNT_PATH "$@"
# -E to preserve http_proxy
sudo -E chroot $TMP_MOUNT_PATH "$@"
}
# Helper function to run a directory of scripts inside the chroot