Hello!

Salvatore Bonaccorso has written on Saturday, 29 September, at 12:35:
>This is indeed intentional, that dpkg never replaces directories with
>symlinks if directory is present, see [1] and [2] (under 4.).

> [1]: http://bugs.debian.org/404850 
> [2]: 
> http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase

>Andreas Beckmann recently is filling many of these bugs discovered by
>piuparts runs (updating Squeeze -> Wheezy). Most common approach there
>is to do the substitution in postinst, in case the directory is there.
>See for example [3].

    I supposedly not much understand how dpkg does this but my question
is - isn't it simpler to delete directory in preinst? The install then
can install the symlink in the place. Right? Redo every symlink install
in postinst seems kinda dirty for me as it duplicates package creation
steps at the time of install and may create invalid symlinks sometime.

    Cheers!
    Andriy.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120929151722.gb30...@rep.kiev.ua

Reply via email to