summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-09 01:43:40 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-09 01:43:40 +0000
commit9ea97f58895d12ba5a1f1c228546461ecfeb3a4a (patch)
treefdaf1609b6fdd49920e7958838b545cbdcacc7c6 /bin
parentZac pointed out that the retcodes would be wrong if stuff failed...Yeah... (diff)
downloadportage-multirepo-9ea97f58895d12ba5a1f1c228546461ecfeb3a4a.tar.gz
portage-multirepo-9ea97f58895d12ba5a1f1c228546461ecfeb3a4a.tar.bz2
portage-multirepo-9ea97f58895d12ba5a1f1c228546461ecfeb3a4a.zip
Add new eqawarn function and QA loglevel to be used for QA messages
svn path=/main/trunk/; revision=5490
Diffstat (limited to 'bin')
-rw-r--r--bin/isolated-functions.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index de62d861..d34af64f 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -15,7 +15,7 @@ elog_base() {
local messagetype
[ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1
case "${1}" in
- INFO|WARN|ERROR|LOG)
+ INFO|WARN|ERROR|LOG|QA)
messagetype="${1}"
shift
;;
@@ -28,6 +28,12 @@ elog_base() {
return 0
}
+eqawarn() {
+ elog_base QA "$*"
+ echo -e " ${WARN}*${NORMAL} $*"
+ return 0
+}
+
elog() {
elog_base LOG "$*"
echo -e " ${GOOD}*${NORMAL} $*"