summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-27 22:22:40 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-27 22:22:40 +0000
commit2f10c445b79646124e47e9e0621f6ffb7b773e0e (patch)
tree5673cb571e2dd6d5525ca9a1331461d4815a97d8 /bin/ebuild.sh
parentdcac7221498c1091d436ef67d40431a133f36121 (diff)
downloadportage-2f10c445b79646124e47e9e0621f6ffb7b773e0e.tar.gz
portage-2f10c445b79646124e47e9e0621f6ffb7b773e0e.tar.bz2
portage-2f10c445b79646124e47e9e0621f6ffb7b773e0e.zip
source ${T}/environment before the definition of qa_source() and qa_call() so that the call stack shows the original files and line numbers instead of those from ${T}/environment. Thanks to Markus Ullmann <jokey@gentoo.org> for reporting.
svn path=/main/trunk/; revision=6297
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 778f80dd5..ef9fbc73e 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -18,6 +18,12 @@ fi
declare -rx EBUILD_PHASE
+if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then
+ if [ -f "${T}/environment" ]; then
+ source "${T}/environment" >& /dev/null
+ fi
+fi
+
# These two functions wrap sourcing and calling respectively. At present they
# perform a qa check to make sure eclasses and ebuilds and profiles don't mess
# with shell opts (shopts). Ebuilds/eclasses changing shopts should reset them
@@ -43,12 +49,6 @@ qa_call() {
return 0
}
-if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then
- if [ -f "${T}/environment" ]; then
- qa_source "${T}/environment" &>/dev/null
- fi
-fi
-
# subshell die support
EBUILD_MASTER_PID=$$
trap 'exit 1' SIGTERM