diff -u scim-1.4.7/debian/scim.postinst scim-1.4.7/debian/scim.postinst --- scim-1.4.7/debian/scim.postinst +++ scim-1.4.7/debian/scim.postinst @@ -30,8 +30,9 @@ # If u-a is in manual mode as a result of the bug in # 1.4.7-3ubuntu1, reset it back to auto. +# Also forcefully remove the scim-bridge entry from xinput_all-ALL in u-a. if dpkg --compare-versions "$2" ge 1.4.7-3ubuntu1 \ - && dpkg --compare-versions "$2" lt-nl 1.4.7-3ubuntu4 + && dpkg --compare-versions "$2" lt-nl 1.4.7-3ubuntu5 then for conf in ja_JP ko_KR zh_CN zh_HK zh_SG zh_TW all_ALL do @@ -43,6 +44,12 @@ update-alternatives --auto xinput-${conf} fi done + if LC_ALL=C update-alternatives --display xinput-all_ALL \ + | grep -q 'currently points to .*scim-bridge' + then + update-alternatives --remove xinput-all_ALL \ + /etc/X11/xinit/xinput.d/scim-bridge + fi fi case "$1" in diff -u scim-1.4.7/debian/changelog scim-1.4.7/debian/changelog --- scim-1.4.7/debian/changelog +++ scim-1.4.7/debian/changelog @@ -1,3 +1,11 @@ +scim (1.4.7-3ubuntu5) hardy; urgency=low + + * debian/scim.postinst: forcefully remove the scim-bridge entry from u-a + for all_ALL, when upgrading from 1.4.7-3ubuntu1 ~ 1.4.7-3ubuntu4 and + scim-bridge-agent was installed before that. + + -- Arne Goetje Fri, 14 Mar 2008 14:46:40 +0800 + scim (1.4.7-3ubuntu4) hardy; urgency=low * debian/scim.postinst: close "if" clause causing error at install