[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#415906: texlive-base-bin: config file xdvi.cfg is not preserved



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!!!
    # special case for xdvi.cfg: 
    # old texlive version takes precedence of old tetex version
    case $cfgfile in
        /etc/texmf/xdvi/xdvi.cfg)
            # old tetex version was moved already
            check_move /etc/texmf/texlive/xdvi.cfg $cfgfile $version
            ;;
    esac
}


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?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
MEATH (adj.)
Warm and very slightly clammy. Descriptive of the texture of your
hands after the automatic drying machine has turned itself off, just
damp enough to make it embarrassing if you have to shake hands with
someone immediately afterwards.
			--- Douglas Adams, The Meaning of Liff



Reply to: