Mark A. Hershberger wrote:
> It is easy to reproduce: 'unset TERM' from the command line and then run 
> svn-buildpackage in such a way that errors or warnings are produced.
> 
> tput will complain that TERM is not defined, making it difficult to read the 
> messages that it is supposed to be bolding.
> 
> Upon further reflection (and perusal of the tput manpage), I'd suggest 
> testing the existance of tput (since svn-buildpackage doesn't depend on 
> ncurses-bin) and then the existance of TERM (since tput won't work without 
> it) and then capturing the value of "tput smso" and "tput rmso" (as suggested 
> by the tput manpage) to the $bold and $unbold variables respectively.

Using tput without making sure the command is available is a bug, except when
this is happening:

Package: ncurses-bin
Essential: yes
Priority: required


Well now what's missing is the check for $TERM.

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to