Re: conffile resurrection...
Norbert Preining <preining@logic.at> wrote:
> On Fre, 08 Jun 2007, Frank Küster wrote:
>> In other words, even if we take over a conffile and $dodelete is 1, we
>> only create the preinst-deleted file when we are upgrading from
>> something younger than 2007. If we're upgrading from 2005-*, purging
>> tetex-base would have had no effect.
>>
>> Or am I missing anything?
>
> Not as far as I see for now, but I am sure that some border cases will
> spring up and bite us ;-) Please check in.
No, I think I was wrong. This is code from preinst, and it does the
following:
if [ -r $orig ]; then
... check md5sums, rm or mv accordingly
else
if [ -n $version ]; then
thouch $new.preinst-deleted
fi
fi
After that, in postinst:
if [ -f "$cfgfile.preinst-deleted" ]; then
echo "It looks like $cfgfile has been removed."
...
So if this file (preinst-deleted) is there, this means that the file
actually was deleted at the old place. Ralf said that he didn't purge
tetex-base, and the file wasn't a conffile in tl 2005, anyway. So
somehow our script's logic is flawed...
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: