Bug#228926: /var/lib/dpkg/info/tetex-bin.postinst: line 209: 5576: Permission denied
Matt Zimmerman <mdz@debian.org> wrote:
>> > This whole thing could probably be simplified a great deal, though, by
>> > generalizing that case statement so that it doesn't need to explicitly
>> > handle every possible $lang value. For example:
>> >
>> > langpat=$(echo "$RET" | sed -e 's/, */\|/g')
>> > sed -e "s/^%! \($langpat\)/\1/" < $LDAT > $TMP_LDAT
>> > chown --reference=$LDAT $TMP_LDAT
>> > chmod --reference=$LDAT $TMP_LDAT
>> > mv $TMP_LDAT $LDAT
>>
>> It's not so easy as that. Notice that the text in debconf's return
>> value, i.e. what is now in the cases statements, is not the same as what
>> we want to replace.
>
> I guess I would map the debconf values to the corresponding values in the
> file, and then use a procedure like the above. It's still much simpler.
The problem is that the values displayed by debconf should be human
readable, whereas the format of language.dat is fixed. Take french: The
synonym "patois" has to be in a separate line in language.dat, but we
want it included in the Choices debconf displays. Or german: Nobody
installing TeX for the first time will now what german vs. ngerman
means, "neue Rechtschreibung" (new orthography) is needed for
clarification. And also here, there's the synonym "austrian" on a
separate line.
I'll suggest a patch in a separate mail.
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: