>From my usual piuparts templates:
For switching from a directory to a symlink the *postinst* script
should do something like this:
DOCDIR=/usr/share/doc/@@PACKAGE@@
DOCLINK=@@OTHERPACKAGE@@
if [ -d $DOCDIR ] && [ ! -L $DOCDIR ]; then
rmdir $DOCDIR
ln -s $DOCLINK $DOCDIR
fi
For switching from a symlink to a directory, the *preinst* script
should do something like this:
DOCDIR=/usr/share/doc/@@PACKAGE@@
if [ -L $DOCDIR ]; then
rm $DOCDIR
fi
Andreas
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team