From: Zac Medico Date: Wed, 9 May 2012 00:45:53 +0000 (-0700) Subject: die: fix ${T}/build.log{,.gz} message X-Git-Tag: v2.2.0_alpha103~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=476f99337da69662660bfe2a0406b9ac5b4678c4;p=portage.git die: fix ${T}/build.log{,.gz} message --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 9b91e6b68..dbf988b28 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -220,8 +220,8 @@ die() { eerror "The complete build log is located at '${PORTAGE_LOG_FILE}'." if [[ ${PORTAGE_LOG_FILE} != ${T}/* ]] ; then # Display path to symlink in ${T}, as requested in bug #412865. - local log_ext=${PORTAGE_LOG_FILE##*/} - log_ext=${log_ext#*.} + local log_ext=log + [[ ${PORTAGE_LOG_FILE} != *.log ]] && log_ext+=.${PORTAGE_LOG_FILE##*.} eerror "For convenience, a symlink to the build log is located at '${T}/build.${log_ext}'." fi fi