aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-05-09 00:45:53 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-05-09 00:45:53 (GMT)
commit476f99337da69662660bfe2a0406b9ac5b4678c4 (patch)
tree843cb44b3a3cc4b9aaa1a7159d29191da279e188
parentmake.conf.5: COLLISION_IGNORE s/shell/fnmatch/ (diff)
downloadportage-476f99337da69662660bfe2a0406b9ac5b4678c4.zip
portage-476f99337da69662660bfe2a0406b9ac5b4678c4.tar.gz
portage-476f99337da69662660bfe2a0406b9ac5b4678c4.tar.bz2
die: fix ${T}/build.log{,.gz} message
-rw-r--r--bin/isolated-functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 9b91e6b..dbf988b 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