Hi Joesl

On 2014-02-01 11:45:44, Joel Rosdahl wrote:
> As far as I can tell, neither python-sqlite-dbg nor python-sqlite in
> neither wheezy nor jessie contain symlinks for (or in) /usr/share/doc and
> don't create any symlinks in preinstall/postinstall scripts.

python-sqlite-dbg in wheezy contains a symlink:

$ dpkg -l python-sqlite-dbg
...
ii  python-sqlite-dbg                 1.0.1-9               amd64 ...

$ file /usr/share/doc/python-sqlite-dbg
/usr/share/doc/python-sqlite-dbg: symbolic link to `python-sqlite'

However, python-sqlite-dbg in jessie ships a directory. After a fresh
install:

$ dpkg -l python-sqlite-dbg
...
ii  python-sqlite-dbg                 1.0.1-10              amd64 ...

$ file /usr/share/doc/python-sqlite-dbg
/usr/share/doc/python-sqlite-dbg: directory

You can see the problem if you install python-sqlite-dbg in wheezy,
upgrade to the version from jessie and then remove it (without removing
python-sqlite). /usr/share/doc/python-sqlite no longer contains any
files apart from README.Debian. copyright and changelog.Debian.gz are
missing.

So for upgrades this conversion from a symlink to a directory needs
special handling: either handle the removal of the symlink in maintainer
scripts or use dpkg-maintscript-helper's symlink_to_dir command to do
that.

Regards
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: Digital signature

Reply via email to