Bug#264241: Some corrections regardings statements in this bug
tags 264241 + patch
stop
On 14.08.04 Adrian Bunk (bunk@fs.tum.de) wrote:
> On Sat, Aug 14, 2004 at 12:25:49PM +0200, Hilmar Preusse wrote:
Hi Adrian,
> > > + command mktexlsr
> > > + mktexlsr
> > > mktexlsr: Updating /usr/local/lib/texmf/ls-R...
> > > mktexlsr: Updating /var/lib/texmf/ls-R...
> > > mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
> > > mktexlsr: Updating /var/cache/fonts/ls-R...
> > > mktexlsr: Done.
> > > + '[' xpurge = xremove ']'
> > >
> > And this is the point, where he starts purging, right?
> >...
>
> no.
>
> I'm an idiot.
>
> Ryan is right.
>
> Purging starts after the "Purging configuration files for tetex-extra".
>
> The mktexlsr call is outside of the check whether it's the removal
> phase (I've first looked at 2.0.2-9, where it's inside the check).
>
Yes. We took it out, to make sure it is called during upgrade too.
Might it be a better idea to check if we're upgrading or removing
before we remove the formats and call mktexlsr, instead of checking
if mktexlsr exists.
Patch attached. Frank, is that a good idea?
H.
--
sigmentation fault
--- tetex-extra.postrm.orig 2004-08-14 11:22:03.000000000 +0000
+++ tetex-extra.postrm 2004-08-14 11:45:13.000000000 +0000
@@ -24,15 +24,14 @@
# we remove tetex-extra's formats always, also on upgrade: If there was an error in
# tetex-extra that caused a corrupted format to be build, it has to be redone.
-for file in amstex.fmt omega.oft lambda.oft mpost.mem \
+if [ x"$1" = "xremove" -o x"$1" = "xupgrade" ]; then
+ for file in amstex.fmt omega.oft lambda.oft mpost.mem \
metafun.mem omega.fmt lambda.fmt; do
- rm -f /var/lib/texmf/web2c/$file
-done
-
-command mktexlsr >/dev/null 2>&1 && mktexlsr
+ rm -f /var/lib/texmf/web2c/$file
+ done
+ command mktexlsr >/dev/null 2>&1 && mktexlsr
+fi
if [ x"$1" = "xremove" ]; then
ucf_purge
fi
-
-
Reply to: