diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-10 23:24:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-10 23:24:21 +0000 |
commit | 554ff5fb58c347cac79a8c446416654d6b279952 (patch) | |
tree | 7349493c102180aa98bd72b1dd9dcb02e020aa50 /eclass/eutils.eclass | |
parent | Version bump, bug 125503 (diff) | |
download | gentoo-2-554ff5fb58c347cac79a8c446416654d6b279952.tar.gz gentoo-2-554ff5fb58c347cac79a8c446416654d6b279952.tar.bz2 gentoo-2-554ff5fb58c347cac79a8c446416654d6b279952.zip |
disable debug output in _epatch_draw_line()
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 7 |
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 ]] ; } |