Bug#415906: texlive-base-bin: config file xdvi.cfg is not preserved
Norbert Preining <preining@logic.at> wrote:
> HI all, especially Frank!
>
> On Fre, 23 Mär 2007, Norbert Preining wrote:
>> First bug report from myself: xdvi.cfg is not preserved on upgrades from
>> texlive 2005 to texlive 2007:
>>
>> Setting up texlive-base-bin (2007-1) ...
>> Installing new version of config file /etc/texmf/fmt.d/10texlive-base-bin.cnf ...
>> Preserving removal of /etc/texmf/xdvi/xdvi.cfg.
>
> I guess the problem is the following code texlive-base-bin.preinst:
>
> handle_config_file_preinst ()
> {
> ...
> case "$cfgfile" in
> ...
> esac
> ### HERE WE DO SOMETHING WITH xdvi.cfg!!!! AS IT IS
> check_move $conf_oldpath $cfgfile $version
> ### AND HERE WE DO SOMETHING MORE WITH xdvi.cfg,
> ### ALTHOUGH IT HAS ALREADY BEEN MOVED AWAY!!!
[...]
> I guess the end should be:
>
> case "$cfgfile" in
> ...
> esac
> case $cfgfile in
> /etc/texmf/xdvi/xdvi.cfg)
> # old tetex version was moved already
> check_move /etc/texmf/texlive/xdvi.cfg $cfgfile $version
> ;;
> *)
> check_move $conf_oldpath $cfgfile $version
> ;;
> esac
> }
>
> Comments? Frank especially since you have written the
> preinst/postinst/unwind code?
I have very little time (packing our flat's contents in boxes...), just
two things:
- With the change you suggest, the teTeX version of xdvi.cfg would be
ignored completely?
- I think it is hardly possible to properly handle all possible
combinations of changed xdvi.cfg. What about the following approach:
* check whether the teTeX file exists, if not just handle texlive
(ignoring teTeX deletions)
* if both the teTeX file and the TeXLive file exist, ignore the teTeX
file
* NEWS.Debian in explaining what's happened
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: