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

Bug#425272: texlive-base-bin: conffile weirdness with xdvi.cfg



Norbert Preining <preining@logic.at> wrote:

> The solution is problematic because we cannot check whether we upgrade
> from a tetex version or a texlive version (both could be installed,
> removed (but not purged), reinstalled etc etc).
>
> So I suggest the following code instead of the one currently present
>
> in common-function.preinst:
>         # for xdvi.cfg we first want to move tetex files, and later
>         # texlives
>         /etc/texmf/xdvi/xdvi.cfg)
>             # here we have to care for the tetex version
>             # we cannot use check_move because if it is not present
>             # because tetex was never installed then a -preinst-deleted

# it could either be deleted, or tetex was never installed.
# We do not want to create .preinst-deleted in the second
# case, so we do the same as...

Sounds clearer to me.  

>             else
>                 if [ -n "$version" ]; then
>                     # we are upgrading from texlive, so this does mean
>                     # that the tetex version was never installed or purged
>                     # don't create the preinst-delete, just do nothing
>                     :
>                 fi

Do we want an else branch here?  

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: