[Pkg-fonts-devel] Dropping defoma hints files: current proposed changes

Theppitak Karoonboonyanan thep at debian.org
Thu Dec 3 08:22:33 UTC 2009


On Thu, Nov 26, 2009 at 4:08 AM, Christian Perrier <bubulle at debian.org> wrote:

> Example for ttf-arabeyes:

>    if dpkg --compare-versions "$2" le "$VERSION"; then
>        if [ -f $FILE ]; then
>                if [ -x /usr/bin/defoma-font ]; then
>                        defoma-font purge-all $FILE || true
>                fi
>                rm_conffile $PKG $FILE
>        fi
>    fi

I've been wondering about the logic of this snippet, as also seen in wiki [1].

  [1] http://wiki.debian.org/DpkgConffileHandling

Comparing the version with 'le "$LASTVERSION"' means that it won't apply
to upgrading from derivative distro package, such as, say, 2.0-5ubuntu1.
Is this deliberate? How is this normally handled on derivative distros?

In fact, Debian stable packages with security updates may also be covered
by this question.

I tend to believe comparing with 'lt "$FIRST_REMOVED_VERSION"' is better.
But I can be wrong.

(Derivative changes can also be about the same conffile, but double-deletion
has already been protected in the snippet. Or if it really does somthing special
to the conffile, it can still be undone on next re-merge. But these are all
exceptions. Covering all derivative versions by default should be sensible.)

Regards,
-Thep.
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/



More information about the Pkg-fonts-devel mailing list