fixing this
Hi Andreas, hi all,
btw, why on earth did this bug not reach the debian-tex-maint ML
as the current maintainer of ptex-bin? It was reported against
Package: ptex-bin
Version: 2011.20120424-1
Anyway. Yes it is true, we have to remove the diversion and other
stuff by the old ptex-bin package in the new ptex-bin.preinst
I have made the following additions to the preinst of ptex-bin:
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" le "2011.20120509-1" ; then
rm -f /etc/texmf/texmf.d/30ptex*
rm -f /etc/texmf/fmt.d/30ptex*
rm -f /etc/texmf/texmf.d/20ptex*
rm -f /etc/texmf/fmt.d/20ptex*
# these will give a warning message for installations who
# did install ptex-bin only from 2011 and not the old one
# No diversion 'diversion of ....none removed.
# but fortunately dpkg-divert returns 0 in this case
# so we do not need to care too much for that
dpkg-divert --package ptex-bin --remove --rename --divert \
/usr/bin/pltotf.nonja /usr/bin/pltotf
dpkg-divert --package ptex-bin --remove --rename --divert \
/usr/share/man/man1/pltotf.nonja.1.gz /usr/share/man/man1/pltotf.1.gz
dpkg-divert --package ptex-bin --remove --rename --divert \
/usr/bin/tftopl.nonja /usr/bin/tftopl
dpkg-divert --package ptex-bin --remove --rename --divert \
/usr/share/man/man1/tftopl.nonja.1.gz /usr/share/man/man1/tftopl.1.gz
fi
esac
Please let me know if you think this appropriate or if we need anything
more?
Best wishes
Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
JURBY (n.)
A loose woollen garment reaching to the knees and with three or more
armholes, knitted by the wearer's well- meaning but incompetent aunt.
--- Douglas Adams, The Meaning of Liff
Reply to: