summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-10 23:24:21 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-10 23:24:21 +0000
commit2bb2d8c6802bd79e5fe7323e92faf2bbbfc07d7f (patch)
tree63781f5a032f54390c303b5f8c9becffe1d41896 /eclass/eutils.eclass
parentVersion bump, bug 125503 (diff)
downloadhistorical-2bb2d8c6802bd79e5fe7323e92faf2bbbfc07d7f.tar.gz
historical-2bb2d8c6802bd79e5fe7323e92faf2bbbfc07d7f.tar.bz2
historical-2bb2d8c6802bd79e5fe7323e92faf2bbbfc07d7f.zip
disable debug output in _epatch_draw_line()
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 25ea5f30a256..476540065ab2 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.227 2006/03/10 18:05:39 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.228 2006/03/10 23:24:21 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -139,6 +139,10 @@ EPATCH_FORCE="no"
#
epatch() {
_epatch_draw_line() {
+ # this func produces a lot of pointless noise when debugging is turned on ...
+ local is_debug=0
+ [[ $- == *x* ]] && is_debug=1 && set +x
+
local i=0 str_length="" str_out=""
# Handle calls that do not have args, or wc not being installed ...
@@ -153,6 +157,7 @@ epatch() {
done
echo ${str_out}
+ [[ ${is_debug} -eq 1 ]] && set -x
return 0
}
_epatch_assert() { local _pipestatus=${PIPESTATUS[*]}; [[ ${_pipestatus// /} -eq 0 ]] ; }