die: fix ${T}/build.log{,.gz} message
authorZac Medico <zmedico@gentoo.org>
Wed, 9 May 2012 00:45:53 +0000 (17:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 May 2012 00:45:53 +0000 (17:45 -0700)
bin/isolated-functions.sh

index 9b91e6b68a603c57078c327d21498fd23c54f0c1..dbf988b283a71e73f5eb0d25fa91f88f8dbf5d47 100644 (file)
@@ -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