tags 388568 +patch
thanks

I have found the problem.  On line 966 of the postinst it says:

db_input "$PRIORITY" "$TEMPLATE" || debug_echo "v_s_d_i/db_input $PRIORITY
$TEMPLATE"

This is followed by

if [ $? -eq 30 ]; then

The return value of 30 is specified for db_input.  However, if db_input
returns 30, debug_echo is called, which always returns 0.  So the check never
matches, and the validation loop is entered even though no question is asked.

The easiest solution is to remove the debug_echo.  If it is needed for some
reason, a construct like this should be made (note that this happens in a set
+e block):

db_input "$PRIORITY" "$TEMPLATE"
retval=$?
if [ $retval -ne 0 ] ; then debug_echo "v_s_d_i/db_input $PRIORITY $TEMPLATE"
; fi
if [ $? -eq 30 ]; then

Thanks,
Bas Wijnen

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html

Attachment: signature.asc
Description: Digital signature

Reply via email to