Qouting debconf-devel.7 Avoid outputting anything to stdout in your postinst, since that can confuse debconf, and postinst should not be verbose anyway. Output to stderr is ok, if you must.
--- portmap.postinst 2009-08-10 01:18:51.000000000 +0100 +++ portmap.postinst 2009-08-21 13:46:23.000000000 +0100 @@ -9,7 +9,7 @@ if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 5-3; then err=$( update-rc.d -f portmap remove 2>&1 > /dev/null ) || { - echo "$err" >&2 + echo "$err" >2 exit 1 } fi @@ -78,13 +78,15 @@ else - echo "Portmap options have already been configured in $CONFFILE" - echo "This script will not modify it, please edit this file manually." + echo "Portmap options have already been configured in " \ + "$CONFFILE. This script will not modify it, please " \ + "edit this file manually." >2 fi fi if [ ! -e "$CONFFILE" ] && [ "$1" = "reconfigure" ] ; then - echo "Cannot reconfigure portmap since $CONFFILE has been manually re moved by the admin" + echo "Cannot reconfigure portmap since $CONFFILE has " \ + "been manually removed by the admin." >2 fi db_stop -- sobtw...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org