assistance with ubuntu-docs bug

Lars Wirzenius lars at ubuntu.com
Mon Mar 30 08:32:54 BST 2009


ma, 2009-03-30 kello 08:10 +0100, Matthew East kirjoitti:
> So we need something in the package maintainer scripts which will
> remove the symlink and permit the package to install the relevant
> files in its place. The relevant commands have been posted in comment
> 15 on the bug, but I don't know how to include these in the package.
> Is someone able to help?

Let's see if I remember all this correctly, it's been a while since I
did anything substantial with maintainer scripts.

You need a preinst script to remove /usr/share/gnome/help/libs, if it is
a symlink, and the package is being upgraded. Create
debian/ubuntu-docs.preinst, with something like the following content:

---- 8< ----
#!/bin/sh

set -e

case "$1" in
upgrade)
	link=/usr/share/gnome/help/libs
	if [ -L "$link" ]
	then
		rm "$link"
	fi
	;;
*) 
	;;
esac

#DEBHELPER#

---- 8< ----

This is highly untested, but will hopefully get you on the right track.




More information about the ubuntu-devel mailing list