Bug#688712: wesnoth: needs to handle symlink to directory change of /usr/share/doc/wesnoth

Vincent Cheng vincentc1208 at gmail.com
Fri Nov 2 20:37:27 UTC 2012


tag 688712 + patch
thanks

Hi Rhonda,

On Mon, Sep 24, 2012 at 4:07 PM, Andreas Beckmann <debian at abeckmann.de> wrote:
> Package: wesnoth
> Version: 1:1.10.3-2
> Severity: important
> User: debian-qa at lists.debian.org
> Usertags: piuparts
>
> Hi,
>
> during a test with piuparts I noticed your package partially overwrites
> wesnoth-1.8-data in squeeze to wheezy upgrades.
>
> /usr/share/doc/wesnoth is a link to wesnoth-1.8-data in squeeze and a
> regular directory in wheezy. dpkg does not replace symlinks with
> directories and vice versa, therefore maintainer scripts need to be
> used.

Since both wesnoth-1.10 and wesnoth-1.10-core are symlinks to
/usr/share/doc/wesnoth-1.10-data, I'm assuming that your intention was
for /usr/share/doc/wesnoth to be a symlink to
/usr/share/doc/wesnoth-1.10-data as well, right? Assuming that this is
correct, I propose the following patch (which I've also committed into
the git repo). It creates the symlink in the rules file, and includes
a postinst script for the wesnoth package to overwrite the
/usr/share/doc/wesnoth directory as a symlink for users who already
have the current wesnoth package in wheezy installed (heavily based on
libpipeline's postinst script).

(I admit I haven't tested this yet, but I'll do so ASAP.)

Regards,
Vincent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wesnoth-1.10_1.10.3-3.debdiff
Type: application/octet-stream
Size: 1697 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20121102/18ccecde/attachment.obj>


More information about the Pkg-games-devel mailing list