[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Turning around a symlink



On Sat, Aug 12, 2000 at 12:20:14PM +0200, Martin Bialasinski wrote:
> I have a problem with gnome-users-guide-en
> 
> in the current version 1.2-1, there is a symlink 
> 
> /usr/share/doc/gnome-users-guide-en/html ->
> /usr/share/gnome/help/users-guide/C 
> 
> dwww won't follow this symlink, so I turned it around in 1.2-2 to read
> 
> /usr/share/gnome/help/users-guide/C ->
> /usr/share/doc/gnome-users-guide-en/html
> 
> But there is a problem with up- and downgrading the package.  The link
> won't change. The version installed first, determines the direction of
> the link, it doesn't change on up- and downgrade.
> 
> Is this a bug/limitation in dpkg?

It's a documented (mis)feature. Make your postinst do something like this:

if [ "$2" -a -d /usr/share/xfce/help -a ! -L /usr/share/xfce/help ]; then
  rm -rf /usr/share/xfce/help && ln -s ../doc/xfce/html /usr/share/xfce/help
fi

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: