[Pkg-ime-devel] Bug#827927: hime: postinst fails due to "set -e" and "dpkg --compare-versions"
Andreas Beckmann
anbe at debian.org
Fri Jul 1 01:16:58 UTC 2016
Followup-For: Bug #827927
Control: found -1 0.9.10+git20150916+dfsg1-5
Hi,
that postinst script is still broken. You could just try to
apt-get install hime
apt-get install --reinstall hime
in a minimal chroot.
You probably wanted to do something like this (untested!):
====================================
#!/bin/sh
set -e
ua_remove () {
update-alternatives --remove xinput-$1 /etc/X11/xinit/xinput.d/$2
}
if [ "$1" = "configure" ]
then
if dpkg --compare-versions "$2" lt-nl 0.9.10+git20150916+dfsg1-3~
then
ua_remove all_ALL hime
ua_remove zh_CN hime
ua_remove zh_TW hime
fi
fi
====================================
Andreas
More information about the Pkg-ime-devel
mailing list