Bug#264241: postrm assumes mktexlsr is available
On 07.08.04 Ryan Murray (rmurray@debian.org) wrote:
Hi Ryan,
> tetex-extra's postrm fails:
> (Reading database ... 7896 files and directories currently installed.)
> Removing tetex-extra ...
> Purging configuration files for tetex-extra ...
> dpkg: error processing tetex-extra (--purge):
> subprocess post-removal script returned error exit status 127
> Errors were encountered while processing:
> tetex-extra
>
> 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.
>
Hmm.
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
in that script and are done. Correct?
Please correct me if I'm completely wrong.
Thanks for your report,
Hilmar
--
sigmentation fault
Reply to: