Commit 76d277d5 authored by Chris Lawrence's avatar Chris Lawrence Committed by Didier Raboud

lsb 3.2-17 Debian release.

parent 08290246
lsb (3.2-17) unstable; urgency=low
* log_{success,failure,warning}_msg suck, please don't use them for
Debian scripts. Nonetheless, breakage fixed. (Closes: #493505)
-- Chris Lawrence <lawrencc@debian.org> Sun, 03 Aug 2008 10:15:45 -0500
lsb (3.2-16) unstable; urgency=low
* Add a bugscript to lsb-release to help figure out why people keep
......
......@@ -122,7 +122,7 @@ binary-arch: build install
dh_testroot
dh_installdebconf -a
dh_installdocs -a
dh_installexamples -a init-skeleton
dh_installexamples -a test/init-skeleton
dh_installmenu -a
# dh_installlogrotate
# dh_installemacsen
......
......@@ -208,7 +208,7 @@ log_warning_msg () {
if [ -n "${1:-}" ]; then
log_begin_msg $@
fi
log_end_msg -1
log_end_msg 255
}
#
......@@ -290,6 +290,9 @@ log_end_msg () {
if [ -z "${1:-}" ]; then
return 1
fi
retval=$1
log_end_msg_pre "$@"
# Only do the fancy stuff if we have an appropriate terminal
......@@ -300,22 +303,23 @@ log_end_msg () {
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
echo "."
elif [ $1 -eq -1 ]; then
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 -1 ]; then
elif [ $1 -eq 255 ]; then
echo -e " (warning)."
else
echo " failed!"
fi
fi
log_end_msg_post "$@"
return $1
return $retval
}
log_action_msg () {
......
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