Package: debhelper
Version: 5.0.35
Severity: wishlist

dh_installinfo presently adds to postinst:
|if [ "$1" = "configure" ]; then
|        install-info --quiet --section "\QUtilities\E" "Utilities" 
/usr/share/info/gzip.info
|fi

and to prerm:
|if [ "$1" = remove ] || [ "$1" = upgrade ]; then
|        install-info --quiet --remove /usr/share/info/gzip.info
|fi

It is my understanding that debhelper deregisters info documents
during prerm remove to avoid needing package-specific knowledge of
when new/old documents are added/removed.

If so, I guess prerm "deconfigure" should also degregister said
documents, and I would suggest to consider it for "failed-upgrade",
too (unless you're deliberately not doing it as a simpler thing to
try..).

Then, postinst abort-[remove|upgrade|deconfigure] should all
reregister them as the rollback action.

The postinst script rarely needs to check its arguments; if the
arguments are checked, the idempotency requirements pretty much
guarantee it to be safe to do the same thing for all of "configure",
"abort-deconfigure", "abort-remove" and "abort-upgrade".  In this
case, prerm can also abstaing from checking its arguments.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to