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:48 +0000 (06:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 23 Aug 2007 06:54:48 +0000 (06:54 -0000)
svn path=/main/branches/2.1.2/; revision=7679

bin/ebuild.sh

index f45e1b69d8c2134fa464bfac9962a08d1c9d5873..c2b06b69181e957bf77bd3f38a6e38695ba6dbc2 100755 (executable)
@@ -1193,7 +1193,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