On 19/02/06 12:43, Antti-Juhani Kaijanaho wrote:
>>grep-dctrl has an empty /usr/share/doc/grep-dctrl directory
> 
> It's supposed to be a symbolic link to dctrl-tools' doc dir.
> 
> I've seen this happen myself, but I don't know what causes it. Do you
> have any theories?

The problem is this (Policy 6.5, step 4):
A directory will never be replaced by a symbolic link to a directory or vice
versa; instead, the existing state (symlink or not) will be left alone and
dpkg will follow the symlink if there is one.

So because the previously-installed grep-dctrl contained
/usr/share/doc/grep-dctrl as a directory, it is not replaced when you upgrade.

A look at other people who have had this problem in the past suggests that
the correct solution is to remove the directory in the preinst.

-- 
Martin Orr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to