summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-01 08:05:50 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-01 08:05:50 +0000
commitb257d49f7351ebaf6ab0e59bd9a8650f309f227d (patch)
tree4eae4d9b322be94283e68723c8cdeb6bb446c672 /bin/isolated-functions.sh
parent0c6e48265cc1e41eee864a358b6fc97f05804b62 (diff)
downloadportage-b257d49f7351ebaf6ab0e59bd9a8650f309f227d.tar.gz
portage-b257d49f7351ebaf6ab0e59bd9a8650f309f227d.tar.bz2
portage-b257d49f7351ebaf6ab0e59bd9a8650f309f227d.zip
When die has been called and ${T}/environment does not exist,
dump the current environment to ${T}/die.env in case it helps for debugging. (trunk r8783) svn path=/main/branches/2.1.2/; revision=8784
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r--bin/isolated-functions.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 9ac0d2f3a..0147a0b16 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -98,8 +98,15 @@ diefunc() {
eerror "If you need support, post the topmost build error, and the call stack if relevant."
[[ -n ${PORTAGE_LOG_FILE} ]] \
&& eerror "A complete build log is located at '${PORTAGE_LOG_FILE}'."
- [ -f "${T}/environment" ] && \
+ if [ -f "${T}/environment" ] ; then
eerror "The ebuild environment file is located at '${T}/environment'."
+ elif [ -d "${T}" ] ; then
+ {
+ set
+ export
+ } > "${T}/die.env"
+ eerror "The ebuild environment file is located at '${T}/die.env'."
+ fi
if [[ -n ${EBUILD_OVERLAY_ECLASSES} ]] ; then
eerror "This ebuild used the following eclasses from overlays:"
local x