Hello,

Did you purge slocate or just unistall it? (dpkg -s locate | grep
Status)

I always purge after upgrade from lenny to squeeze ;-)

Anyway, I think you got bitten by the fact that slocate used
dpkg-divert on a dpkg conffile. This is known to break. I guess
something like this happened:
#1 slocate installed, diverts /etc/cron.daily/find.
#2 locate split off from findutils. On the upgrade
/etc/cron.daily/find was deleted.
#3 slocate uninstalled, reinstating /etc/cron.daily/find

I agree, I think I had upgraded and remove (purge) slocate after upgrade to squeeze (I never keep old package because I try older computer to be as the same as the new). Maybe the bug is here.

This is not easily fixable, and I do not think it makes sense to so. -

Not easy to fix now an old bug from past dist-upgrade, and the bug is not very serious !

Slocate was removed 2009, splitting off locate from findutils was done
even earlier, in 2007, Debian 5.0 (lenny) already had the change.

To clean up, make sure
#1 you have purged slocate (dpkg --purge slocate),
#2 that the diversion of the conffile is properly removed (Check with
dpkg-divert --list /etc/cron.daily/find) and
#3 after that is true delete /etc/cron.daily/find.

It's what I have done with cfengine. I just add your test on dpkg-divert before remove.

/usr/bin/dpkg-divert --list /etc/cron.daily/find | wc -l | grep -q ^0 && /bin/rm -f /etc/cron.daily/find

Maybe in the post-install script ? I do not known if it's a good place to hack these ?

if [ -e /etc/cron.daily/find ]
then
/usr/bin/dpkg-divert --list /etc/cron.daily/find | wc -l | grep -q ^0 && /bin/rm -f /etc/cron.daily/find
fi

Thanks for all

gaby
--
Gabriel Moreau - IR CNRS                http://www.legi.grenoble-inp.fr
LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels
BP53, 38041 Grenoble Cedex, France                  tel:+33.476.825.015
mailto:gabriel.mor...@legi.grenoble-inp.fr                   fax:++.271


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to