Package: grep Version: 2.5.1.ds2-5 Severity: wishlist When prerm remove|upgrade fails, postinst abort-* is called to undo their effects; postrm upgrade needn't deregisiter the info document, just to register it in postinst; postrm "deconfigure" should, however, since a (hypothetical) dependency has been removed.
Actually, you might consider continuing to deregister the document during prerm "upgrade" if it might be removed at some point. This could avoid having to have a preinst version check until the following stable release was made. So prerm doesn't need to check its arguments. --- /var/lib/dpkg/info/grep.prerm 2006-05-18 08:05:12.000000000 -0400 +++ /tmp/grep.prerm 2006-06-18 15:00:22.000000000 -0400 @@ -1,5 +1,16 @@ -#!/bin/sh -e +#! /bin/sh +set -e -if [ "$1" = "remove" -o "$1" = "upgrade" ]; then - install-info --remove --quiet /usr/share/info/grep.info.gz -fi +case "$1" in +remove|deconfigure) + install-info --remove --quiet /usr/share/info/grep.info.gz + ;; + +upgrade|failed-upgrade) + :; + ;; + +*) + echo "$0: Undocumented call: \"[EMAIL PROTECTED]"" >&2 + exit 1 +esac --- /var/lib/dpkg/info/grep.postinst 2006-05-18 08:05:12.000000000 -0400 +++ /tmp/grep.postinst 2006-06-18 14:59:46.000000000 -0400 @@ -1,7 +1,16 @@ -#!/bin/sh -e +#! /bin/sh +set -e -if [ "$1" = configure ]; then - install-info --quiet \ - --description="Grep searches on input for lines containing a match to a pattern." \ - --section "General Commands" "General Commands" /usr/info/grep.info -fi +d="Grep searches on input for lines containing a match to a pattern." +case "$1" in +configure|abort-remove|abort-deconfigure|abort-upgrade) + install-info --quiet --description="$d" \ + --section "General Commands" "General Commands" \ + /usr/info/grep.info + ;; + +*) + echo "$0: Undocumented call: \"[EMAIL PROTECTED]"" >&2 + exit 1; + ;; +esac -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]