summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-10 04:22:27 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-10 04:22:27 +0000
commitc53f52941c88b24c20204f1795dc02f595ee3a57 (patch)
treeea728689d7e18677337067eeb062f09294070af4 /bin/isolated-functions.sh
parentAdd elog related variables to make.conf(5) with a pointer to make.conf.exampl... (diff)
downloadportage-multirepo-c53f52941c88b24c20204f1795dc02f595ee3a57.tar.gz
portage-multirepo-c53f52941c88b24c20204f1795dc02f595ee3a57.tar.bz2
portage-multirepo-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.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index d34af64f..5b2c82f7 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 "$@"
}