diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-04-22 10:56:01 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-04-22 10:56:01 -0700 |
commit | b93b24f9fa1b2761aa0768274bd93ade9b526961 (patch) | |
tree | dfe3d7409184b6c140ded3dba3d4460b9be25312 /bin | |
parent | e706a3dbc922130fe52a6513e9b91af7afc843aa (diff) | |
download | portage-b93b24f9fa1b2761aa0768274bd93ade9b526961.tar.gz portage-b93b24f9fa1b2761aa0768274bd93ade9b526961.tar.bz2 portage-b93b24f9fa1b2761aa0768274bd93ade9b526961.zip |
Add ${T}/build.log symlink to PORT_LOGDIR.
This will fix bug #412865. This makes it easier on people who
`emerge foo`, do stuff, `emerge foo`, do stuff, etc... to have
the same path to the log in between runs.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/isolated-functions.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 98be41ec0..36304881f 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -216,8 +216,15 @@ die() { > "$PORTAGE_BUILDDIR/.die_hooks" fi - [[ -n ${PORTAGE_LOG_FILE} ]] \ - && eerror "The complete build log is located at '${PORTAGE_LOG_FILE}'." + if [[ -n ${PORTAGE_LOG_FILE} ]] ; then + 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#*.} + eerror "For convenience, a symlink to the build log is located at '${T}/build.${log_ext}'." + fi + fi if [ -f "${T}/environment" ] ; then eerror "The ebuild environment file is located at '${T}/environment'." elif [ -d "${T}" ] ; then |