Only echo PORTAGE_LOG_FILE if it's actually set (may not be if sesandbox is enabled).
authorZac Medico <zmedico@gentoo.org>
Wed, 7 Feb 2007 20:45:49 +0000 (20:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 7 Feb 2007 20:45:49 +0000 (20:45 -0000)
svn path=/main/trunk/; revision=5912

bin/isolated-functions.sh

index c5c2f4824d57ed8cc2b7d35260c2ecbb56144c47..d9fafbcb67150aee0b17d3d26b23efa6b5e21cf1 100755 (executable)
@@ -20,7 +20,8 @@ diefunc() {
         echo >&2
         echo "!!! ${*:-(no error message)}" >&2
         echo "!!! If you need support, post the topmost build error, and the call stack if relevant." >&2
-        echo "!!! A complete build log is located at '${PORTAGE_LOG_FILE}'." >&2
+        [ -n "${PORTAGE_LOG_FILE}" ] && \
+            echo "!!! A complete build log is located at '${PORTAGE_LOG_FILE}'." >&2
         echo >&2
         if [ -n "${EBUILD_OVERLAY_ECLASSES}" ] ; then
                 echo "This ebuild used the following eclasses from overlays:" >&2