[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Quoting Davide Viti (zinosat-guest@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
install|upgrade)
    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
                fi
        fi
        rm_conffile $PKG $FILE
    fi
esac

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.



Attachment: signature.asc
Description: Digital signature


Reply to: