[Pkg-fonts-devel] [Pkg-fonts-commits] r1452 - packages/ttf-freefont/trunk/debian

Christian Perrier bubulle at debian.org
Mon Nov 30 05:56:47 UTC 2009

(private copy to get attention. Please reply only in the list)

Quoting Davide Viti (zinosat-guest at alioth.debian.org):

> ===================================================================
> --- packages/ttf-freefont/trunk/debian/preinst	                        (rev 0)
> +++ packages/ttf-freefont/trunk/debian/preinst	2009-11-29 21:08:57 UTC (rev 1452)


> +case "$1" in
> +install|upgrade)
> +  if dpkg --compare-versions "$2" lt-nl "20090104-5"; then
> +    rm_conffile ttf-freefont "/etc/defoma/hints/ttf-freefont.hints"
> +  fi
> +esac
> +

Davide, I didn't notice this in ttf-dejavu (I should have). You
apparently don't purge defoma's font-cache in the preinst scripts.

What I added to other packages' scripts is:

case "$1" in
    if dpkg --compare-versions "$2" lt-nl "$VERSION"; then
        if [ -f $FILE ]; then
                if [ -x /usr/bin/defoma-font ]; then
                        defoma-font purge-all $FILE || true
        rm_conffile $PKG $FILE

I agree that, when defoma is dropped, this won't be of any importance,
but until then, it's probably cleaner to purge the cache when the
hints file is dropped.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20091130/e04d519a/attachment.pgp>

More information about the Pkg-fonts-devel mailing list