Re: Seeking for Help on resolving a symlink problem in icewm
On Mon, Jul 30, 2001 at 10:03:33AM +0200, Jérôme Marant wrote:
> I guess that when lintian finds a /usr/share/doc/<package> link
> within a package, it won't complain since it thinks that the copyright
> file will be found in the directory pointed by the symlink. But in
> my case, the symlink is created in the postinst only.
> So my question is: are there any other solutions to this problem, i.e:
> - could something be done in the preinst rather than in the postinst,
> like removing the old directory allowing to leave the symlink in the
> package? This could be risky in a case of a installation failure.
The usual solution is to move the old documentation directory to a safe
place (e.g. /usr/share/doc/icewm.deleteme) in the preinst, and remove
that directory if it exists in the postinst. This then allows you to
roll back safely if something goes wrong. Alternatively, you could move
the directory to its new home in the preinst and again roll back if
For example, see the way that groff-base turns
/usr/share/groff/site-tmac into a symlink to /etc/groff.
Colin Watson [firstname.lastname@example.org]