+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
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
--- /dev/null
+#!/bin/sh -e
+
+echo "Importing $1/init-functions"
+. $1/init-functions
+
+log_warning_msg "Only a warning"
+
+echo "OK!"