On 2009-07-12 22:12 +0200, Niko Tyni wrote:
> I'm not very eager either to add maintainer scripts juggling the
> /usr/share/doc symlinks. Can we even trust that all systems have
> /usr/share/doc/perl-modules -> perl, or could things like the old /usr/doc
> transition have left different details on systems with a long history?
Hardly, but it does not really matter. You just remove the offending
symlink after verifying that it is indeed, err, a symlink:
--8<---------------cut here---------------start------------->8---
if [ -L /usr/share/doc/perl-modules ]; then
rm -f /usr/share/doc/perl-modules
fi
--8<---------------cut here---------------end--------------->8---
That snippet in the preinst script is all you need.
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]