diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-10 04:22:27 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-10 04:22:27 +0000 |
commit | c53f52941c88b24c20204f1795dc02f595ee3a57 (patch) | |
tree | ea728689d7e18677337067eeb062f09294070af4 /bin/isolated-functions.sh | |
parent | 62b9787719172d3b628eaecf6cf7b3f21645c8d5 (diff) | |
download | portage-c53f52941c88b24c20204f1795dc02f595ee3a57.tar.gz portage-c53f52941c88b24c20204f1795dc02f595ee3a57.tar.bz2 portage-c53f52941c88b24c20204f1795dc02f595ee3a57.zip |
For bug #160075, send all 'QA Notice' messages to eqawarn. Also, modify eqawarn to use vecho and send ouput to stderr.
svn path=/main/trunk/; revision=5507
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r-- | bin/isolated-functions.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index d34af64fa..5b2c82f7c 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -30,7 +30,7 @@ elog_base() { eqawarn() { elog_base QA "$*" - echo -e " ${WARN}*${NORMAL} $*" + vecho -e " ${WARN}*${NORMAL} $*" >&2 return 0 } @@ -224,6 +224,15 @@ RC_INDENTATION='' RC_DEFAULT_INDENT=2 RC_DOT_PATTERN='' +case "${NOCOLOR:-false}" in + yes|true) + unset_colors + ;; + no|false) + set_colors + ;; +esac + has() { hasq "$@" } |