Hello Sven, On Thu, May 28, 2009 at 07:53:36PM +0200, Sven Joachim wrote: > I don't know why this preinst script is necessary, but if you need to > insure that the new update-alternatives script is run in it, you have to > use Pre-Depends rather than Depends. See Policy ยง 7.2.
Thanks, I missed the last paragraph previously.
The reason is the following in the preinst (which I inherited, so if
it is wrong, I gladly rewrite/improve):
case "$1" in
upgrade|install)
if ! LC_ALL=C update-alternatives --display asclock 2>&1 | grep 'error: no
alternatives' > /dev/null ; then
update-alternatives --auto asclock
update-alternatives --remove asclock $asclock-4bpp
update-alternatives --remove asclock $asclock-8bpp
update-alternatives --remove asclock $asclock-24bpp
fi
;;
abort-upgrade)
;;
*)
echo "asclock preinst called with an unkown argument: $1" >&2
exit 1
;;
esac
> AFAIK on the buildds packages are unpacked by the host system's dpkg
> which will be the stable version, so a Pre-Dependency on an unstable
> dpkg is frowned upon.
IMHO this should only be a problem if asclock becomes a build dependency
for other packages which I currently don't see to be.
Greetings
Helge
--
Dr. Helge Kreutzmann [email protected]
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
signature.asc
Description: Digital signature

