Commit fd7d5db1 authored by Chris Lawrence's avatar Chris Lawrence Committed by Didier Raboud

lsb 3.2-18 Debian release.

parent 76d277d5
lsb (3.2-18) unstable; urgency=low
* Also fix case where stdout isn't color-capable. (Closes: #493505, again)
-- Chris Lawrence <lawrencc@debian.org> Mon, 04 Aug 2008 02:31:03 -0500
lsb (3.2-17) unstable; urgency=low
* log_{success,failure,warning}_msg suck, please don't use them for
......
......@@ -301,22 +301,19 @@ log_end_msg () {
RED=`$TPUT setaf 1`
YELLOW=`$TPUT setaf 3`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
echo "."
elif [ $1 -eq 255 ]; then
/bin/echo -e " ${YELLOW}(warning).${NORMAL}"
retval=0
else
/bin/echo -e " ${RED}failed!${NORMAL}"
fi
else
if [ $1 -eq 0 ]; then
echo "."
elif [ $1 -eq 255 ]; then
echo -e " (warning)."
else
echo " failed!"
fi
RED=''
YELLOW=''
NORMAL=''
fi
if [ $1 -eq 0 ]; then
echo "."
elif [ $1 -eq 255 ]; then
/bin/echo -e " ${YELLOW}(warning).${NORMAL}"
retval=0
else
/bin/echo -e " ${RED}failed!${NORMAL}"
fi
log_end_msg_post "$@"
return $retval
......
#!/bin/sh -e
echo "Importing $1/init-functions"
. $1/init-functions
log_warning_msg "Only a warning"
echo "OK!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment