Re: Bug#269416: tetex-extra postinst lacks debconf loading
Florent Rougon <f.rougon@free.fr> wrote:
> I think I've found the culprit:
>
> mv $tempfile $$ETXMFC
> ^
> (line 143 of tetex-bin 2.0.2's postinst)
Thanks, that's a bad typo.
> Also, the logic below when you do the:
>
> if ! grep '^[[:space:]]*TEXMF' $ETXMFC | grep TEXMFMAIN >/dev/null; then
>
> is a bit flawed because this matches lines such as:
This has yet been corrected in the last change before 2.0.2-21, from
ViewCVS:
-if ! grep '^[[:space:]]*TEXMF' $ETXMFC | grep VARTEXMF >/dev/null; then
+if ! grep '^[[:space:]]*TEXMF[[:space:]]*=' $ETXMFC | grep VARTEXMF >/dev/null; then
# VARTEXMF is not in TEXMF
- if ! grep '^[[:space:]]*TEXMF' $ETXMFC | grep TEXMFMAIN >/dev/null; then
+ if ! grep '^[[:space:]]*TEXMF[[:space:]]*=' $ETXMFC | grep TEXMFMAIN >/dev/null; then
> Finally, with a few cosmetic changes in the sed c command, that would
> make the following patch (for the space right before the c command, I'm
> not saying it's wrong; *I* just don't know, so *I* wouldn't use it...).
Good, I'll apply that.
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: