Jonathan Wiltshire <deb...@jwiltshire.org.uk> writes: > I may be wrong, but you should probably test in your postinst what apt > wants you to do (install, upgrade, abort etc). See > /usr/share/debhelper/dh_make/debian/postinst.ex for an example. The > summary at the top is useful. Blindly using 'update-alternatives > --install' isn't very helpful in some circumstances. Your prerm script > does do this check.
Not that anyone gets this right in practice, but I think calling update-alternatives unconditionally in postinst is the correct way to handle the error rollback cases. You don't want to call it unconditionally in prerm because you don't want to call it on upgrade normally, but there isn't a similar case for postinst. -- Russ Allbery (r...@debian.org) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org