Package: dictionaries-common
Version: 0.80.1
Severity: important
Tags: patch
update-alternatives --auto may set a non-zero exit code even without any
output indicating a problem. The attached patch prevents the preinst
from failing in that case.
--- System information. ---
Architecture: powerpc
Kernel: Linux 2.6.20-1-powerpc
Debian Release: lenny/sid
500 unstable mirror.switch.ch
500 stable security.debian.org
102 experimental ftp.ch.debian.org
--- Package information. ---
Depends (Version) | Installed
=============================-+-==============
perl-base (>= 5.6.0-16) | 5.8.8-7
debconf (>= 0.5) | 1.5.13
OR debconf-2.0 |
--
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
diff -up -ru dictionaries-common-0.80.1.orig/debian/dictionaries-common.preinst dictionaries-common-0.80.1/debian/dictionaries-common.preinst
--- dictionaries-common-0.80.1.orig/debian/dictionaries-common.preinst 2005-02-14 16:54:58.000000000 +0100
+++ dictionaries-common-0.80.1/debian/dictionaries-common.preinst 2007-05-10 10:14:21.000000000 +0200
@@ -13,14 +13,14 @@ case "$1" in install|upgrade)
for i in $DICTS ; do
/usr/sbin/update-alternatives --remove ispell-dictionary.hash $i
done
- /usr/sbin/update-alternatives --auto ispell-dictionary.hash
+ /usr/sbin/update-alternatives --auto ispell-dictionary.hash || true
# The same for wordlists
WORDS=`/usr/sbin/update-alternatives --display dictionary \
| grep priority | cut -f1 -d" "`
for i in $WORDS ; do
/usr/sbin/update-alternatives --remove dictionary $i
done
- /usr/sbin/update-alternatives --auto dictionary
+ /usr/sbin/update-alternatives --auto dictionary || true
;;
esac