[Pkg-fonts-devel] Dropping defoma use in TTF/OTF font packages?

Josselin Mouette joss at debian.org
Tue Nov 10 15:38:29 UTC 2009

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

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}
if [ "$1" = remove ] && dpkg --compare-versions "$2" lt-nl $VERSION;
    if [ -x /usr/bin/defoma-font ]; then
        defoma-font purge-all $FILE
    rm_conffile $FILE

 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20091110/3a6aecb8/attachment.pgp>

More information about the Pkg-fonts-devel mailing list