Le mardi 10 novembre 2009 à 07:25 +0100, Christian Perrier a écrit : > The only thing Joss mentioned me is to take care of what's left after > the upgrade. However, our packages that use dh_installdefoma have > things like this in their prerm scripts: > > # Automatically added by dh_installdefoma > FILE='/etc/defoma/hints/ttf-lao.hints' > if [ "$1" = remove ]; then > test -x /usr/bin/defoma-font && /usr/bin/defoma-font purge-all $FILE > fi > # End automatically added section > > So, I think that removing defoma stuff is just enough. Well, given this snippet, it is not enough. It will not be executed upon upgrades. Therefore, packages which remove the call to dh_installdefoma need to add something like this in their preinst: VERSION={first version with defoma being removed} FILE=/etc/defoma/hints/ttf-lao.hints if [ "$1" = remove ] && dpkg --compare-versions "$2" lt-nl $VERSION; then if [ -x /usr/bin/defoma-font ]; then defoma-font purge-all $FILE fi rm_conffile $FILE fi Cheers, -- .''`. Josselin Mouette : :' : `. `' “I recommend you to learn English in hope that you in `- future understand things” -- Jörg Schilling
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=