From: Zac Medico Date: Fri, 13 Aug 2010 16:37:15 +0000 (-0700) Subject: Disable the die() stack trace when called by the die helper. X-Git-Tag: v2.2_rc68~240 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ebdc234f035e14d15091081952d70fba472b967;p=portage.git Disable the die() stack trace when called by the die helper. --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 14ba58cc8..24adb697d 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -113,6 +113,8 @@ die() { eerror "ERROR: $CATEGORY/$PF failed:" eerror " ${*:-(no error message)}" eerror + # This part is useless when called by the die helper. + if [[ ${BASH_SOURCE[1]##*/} != die ]] ; then dump_trace 2 ${filespacing} ${linespacing} eerror " $(printf "%${filespacing}s" "${BASH_SOURCE[1]##*/}"), line $(printf "%${linespacing}s" "${BASH_LINENO[0]}"): Called die" eerror "The specific snippet of code:" @@ -138,6 +140,7 @@ die() { | sed -e '1d' -e 's:^:RETAIN-LEADING-SPACE:' \ | while read -r n ; do eerror " ${n#RETAIN-LEADING-SPACE}" ; done eerror + fi eerror "If you need support, post the output of 'emerge --info =$CATEGORY/$PF'," eerror "the complete build log and the output of 'emerge -pqv =$CATEGORY/$PF'." if [[ -n ${EBUILD_OVERLAY_ECLASSES} ]] ; then