For consistency, respecting config/environment too for both chroot and binary environments (but the content of sepcific environments for either chroot or binary still has precedence over the generic one).

This commit is contained in:
Daniel Baumann 2012-06-06 21:32:08 +02:00
parent 0451545abb
commit 87374242c6
2 changed files with 18 additions and 12 deletions

View File

@ -16,12 +16,15 @@ Chroot ()
# Executing commands in chroot
Echo_debug "Executing: %s" "${COMMANDS}"
if [ -e config/environment.chroot ]
then
ENV="$(grep -v '^#' config/environment.chroot)"
else
ENV=""
fi
ENV=""
for _FILE in config/environment config/environment.chroot
do
if [ -e "${_FILE}" ]
then
ENV="${ENV} $(grep -v '^#' ${_FILE})"
fi
done
if [ "${LB_USE_FAKEROOT}" != "true" ]
then

View File

@ -42,12 +42,15 @@ case "${1}" in
COMMAND="lb_${1}"
shift
if [ -e config/environment.binary ]
then
ENV="$(grep -v '^#' config/environment.binary)"
else
ENV=""
fi
ENV=""
for _FILE in config/environment config/environment.binary
do
if [ -e "${_FILE}" ]
then
ENV="${ENV} $(grep -v '^#' ${_FILE})"
fi
done
if [ -x "${LB_BASE}/scripts/build/${COMMAND}" ]
then