Bug#197579: tetex-base: on purge, this pkg removes conffiles from other packages
From: Hilmar Preusse <hille42@web.de>
Subject: Bug#197579: tetex-base: on purge, this pkg removes conffiles from other packages
Date: Tue, 17 Jun 2003 00:29:37 +0200
> OK, I see. So during purging of tetex-base we must remove only the
> files, which might have been created during postin. The following
> patch might do this.
For clarification. Did you refer to 2.0.2-4? In 2.0.2-4.1,
generated files are in /var/lib/texmf/web2c so
"rm -rf /var/lib/texmf/web2c" is enough to remove them
and this line should be in tetex-bin.postrm, I guess.
("rm -rf /var/lib/texmf" in tetx-base.postrm is to remove
ls-R etc. so it is another story, IMHO)
> anyway (oh wait, language.dat is not removed during postrm of
> tetex-bin).
Of course, your suggestion for removing /etc/texmf/language.dat
is reasonable.
> tetex-bin). In postin of tetex-bin I found further:
>
> rm -f ${TEXMFC}* ${FMTCNF}*
> rm -rf ${TEXMFD}
> rm -rf ${FMTD}
>
> in case of purge, with
>
> TEXMFC=/etc/texmf/texmf.cnf
> FMTCNF=/etc/texmf/fmtutil.cnf
> TEXMFD=/etc/texmf/texmf.d
> FMTD=/etc/texmf/fmt.d
>
> which is IMHO the same policy violation. We should remove only the
> generated files and the files* versions and then we're done. The last
> two commands are surplus.
So, you mean
> if [ x"$1" = xpurge ] ; then
> - rm -f ${TEXMFC}* ${FMTCNF}*
> + rm -f ${TEXMFC}* ${FMTCNF}* ${LDAT}*
> rm -rf ${TEXMFD}
> rm -rf ${FMTD}
- rm -rf ${TEXMFD}
- rm -rf ${FMTD}
and should add (as I explained above),
+ rm -rf /var/lib/texmf/web2c
Or, does this also do something harmful?
Thanks, 2003-6-21(Sat)
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Tokushima Univ.
Reply to: