On Sun, Aug 05, 2007 at 07:05:10PM +0200, Martin Pitt wrote:
>Oh, weird; thanks for pointing this out.
As I recall, the rationale was so that symlinks created by the
administrator were not clobbered on upgrade--consider the case where an
admin running low on space moves /usr/lib/some-huge-package to another
partition and creates a symlink to that new location.
It would be nice if dpkg noticed that the discrepancy b/w symlink and
directory in different
>Is there also a common practice how to perform this correctly then? Currently I
>have this nasty bit in postinst:
Probably better to do it in a preinst:
if [ "$1" = upgrade ] &&
dpkg --compare-versions "$2" lt 8.2.4-2 &&
test ! -L /usr/share/postgresql/8.2/timezone &&
test -d /usr/share/postgresql/8.2/timezone
then
rm -rf /usr/share/postgresql/8.2/timezone
fi
--bod
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]