Bug#264241: postrm assumes mktexlsr is available
tags 264241 + patch
stop
On 10.08.04 Ryan Murray (rmurray@debian.org) wrote:
> On Tue, Aug 10, 2004 at 02:34:20PM +0200, Hilmar Preusse wrote:
Hi,
> > > You can't assume that any of your dependencies are available in
> > > your postrm script, so you need to handle the case where
> > > mktexlsr has already been removed.
> > >
> > In postrm of tetex-extra we do:
> >
> > #!/bin/sh
> > <snip>
> > command mktexlsr >/dev/null 2>&1 && mktexlsr
> >
> > The man page of bash tells us, that it should be sufficient to do
> > so if /bin/sh points to /bin/bash. I guess we have to remove the
> > bashism
>
> It does? To me, it looks like you run mktexlsr twice, once via command,
> and once without. And both will fail if mktexlsr doesn't exist.
>
OK, sorry. We call mktexlsr twice, the second time if it fails the
first time. I dunno exactly why we do this, but IIRC some things are
cured, if we call it twice. Unfortunately we don't check if mktexlsr
exist, before doing this. I guess we have to put an test -x wrapper
around.
Thanks for your help,
Hilmar
--
sigmentation fault
Reply to: