It was my idea to use dlocate to speed up the trigger.

Dangling symlinks are leftovers from packages built with python-central
< 0.6.8 and these packages don't ship these symlinks in the package, so
old dlocate database doesn't hurt (actually, it makes the trigger work
even better, see below).

The only problem I see with old database are situations where one
installed Lenny and immediately upgraded it to Squeeze (without
generating dlocate database first), we can invoke update-dlocatedb to
fix that, but...

To be honest, I would not check if symlink belongs to a package at all.
I'd simply remove all of them as all dangling symlinks in site-packages
are either generated by pycentral or come from a broken package anyway.

I'd use dpkg -S or dlocate to check *valid* symlinks (generated by
pycentral and now valid due to the fact that pysupport is using
/usr/share/pyshared as well) but since all (TODO: check it :) packages
converted to python-support have appropriate preinst maintainer script,
I guess we can ignore it.
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

Attachment: signature.asc
Description: Digital signature

Reply via email to