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

Bug#425781: texlive-base: Upgrade failes



Norbert Preining <preining@logic.at> wrote:

>     if [ -f "$cfgfile.preinst-deleted" ]; then
>       echo "It looks like $cfgfile has been removed."
>       echo "If you didn't do this it could be bug #420390."
>       echo "If you had tetex-base 3.0.dfsg.3-5 installed and purged it,"
>       echo "this is the case."
>       echo "Please reinstatiate $cfgfile from $cfgfile.new"
>       echo "Preserving removal of $cfgfile."
>       mv "$cfgfile" "$cfgfile.dpkg-new"
>       rm "$cfgfile.preinst-deleted"
>     fi
>
> (Wording could be changed).
>
> Would this be a good option?

That sounds reasonable, except that it might be better to use debconf
for this.  Moreover, for the really mandatory files, like
pdftexconfig.tex and modes.mf, we should not just leave it to the user
and continue.  Instead we should either forcibly recreate the file and
notify the user, or stop right here with a decent debconf error message.

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



Reply to: