Bug #189791 - Send errors to /dev/null when debug-print() fails to write to ${T}...
authorZac Medico <zmedico@gentoo.org>
Thu, 23 Aug 2007 06:54:18 +0000 (06:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 23 Aug 2007 06:54:18 +0000 (06:54 -0000)
svn path=/main/trunk/; revision=7678

bin/ebuild.sh

index 39fcbb3557602b319b187af78b5277f143e796cf..7143713529466b224117797747ecd6ac2ec1cae0 100755 (executable)
@@ -1115,7 +1115,7 @@ debug-print() {
                fi
 
                # default target
-               echo "$1" >> "${T}/eclass-debug.log"
+               echo "$1" 2>/dev/null >> "${T}/eclass-debug.log"
                # let the portage user own/write to this file
                chmod g+w "${T}/eclass-debug.log" &>/dev/null