Package: dc Version: 1.06-19 Severity: normal Tags: patch new prerm failed-upgrade is called when old prerm upgrade fails, and it should attempt the same thing, but fix any errors discovered in the old scripts. Until such an error is known and understood, they should be identical. The "-in-favour" is actually passed as "$2", not as a suffix to "$1" (but note that it never appears for any "$1" that can also have "$2" as a version string, which is nice; otherwise you'd have to test $# -eq 2). postinst should handle the maintscript rollback request.
--- /var/lib/dpkg/info/dc.prerm 2005-11-17 17:06:48.000000000 -0500 +++ /tmp/dc.prerm 2006-06-20 21:52:08.000000000 -0400 @@ -16,18 +16,10 @@ case "$1" in - remove|upgrade|remove-in-favour|deconfigure-in-favour) - # - install-info --quiet --remove dc - # -# if command -v install-docs >/dev/null 2>&1 -# then -# install-docs -r dc -# fi +remove|upgrade|failed-upgrade|deconfigure) + install-info --quiet --remove dc ;; - failed-upgrade) - ;; - *) +*) echo "prerm called with unknown argument \`$1'" >&2 ;; --- /var/lib/dpkg/info/dc.postinst 2005-11-17 17:06:48.000000000 -0500 +++ /tmp/dc.postinst 2006-06-20 21:59:43.000000000 -0400 @@ -20,28 +20,16 @@ case "$1" in - configure) - # - install-info --quiet --section "General commands" "General commands" \ - /usr/share/info/dc.info.gz - # -# if [ -x /usr/bin/update-menus ] -# then -# update-menus -# fi - # -# if command -v install-docs >/dev/null 2>&1 -# then -# install-docs -i /usr/share/doc-base/dc -# fi + configure|abort-remove|abort-deconfigure) + s="General commands" + install-info --quiet --section "$s" "$s" /usr/share/info/dc.info.gz ;; - abort-upgrade|abort-remove|abort-deconfigure) + + abort-upgrade) + # Nothing to undo ;; + *) echo "postinst called with unknown argument \`$1'" >&2 ;; esac - - - - -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]