Bug#249597: texmf: Leaves spurious tempfiles around
Frank Küster <frank@debian.org> wrote:
>
> It's a little harder with the fmtutil call: Currently, we grep through
> the tempfile for the "I'm stymied" message,
This does not make sense AFAIS, because fmtutil will grep for errors
itself, and exit 1 if it encounters one.
I have just committed a change that does essentially the following:
tempfile=`mktemp -p $TMPDIR tetex.postinst.XXXXXXXX`
echo "Running initex. This may take some time. ..."
if $TEXINIT_P > $tempfile; then
rm -f $tempfile
else
echo
echo "fmtutil failed. Output has been stored in"
echo "$tempfile"
echo "Please include this file if you report a bug."
exit 1
fi
For updmap, stderr is redirected, instead. Similar changes also have to
be made to tetex-base's and tetex-extra's postinst. Ah, and regarding
updmap we should have a look at postrm.
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: