Package: naist-jdic-utf8
Version: 0.4.3-14
Severity: normal

this is still a problem with the latest version in sid
chasen/sid uptodate 2.4.4-10
naist-jdic/sid uptodate 0.4.3-14
naist-jdic-utf8/sid uptodate 0.4.3-14

during naist-jdic-utf8 install

Done! Check /var/lib/chasen/dic/naist-jdic-utf8 directory.
[: 68: -a: unexpected operator

making the change below in naist-jdic-utf8.postinst seems to work if it see=
ms ok to do

if [ -z `grep '(ENCODE "u")' ${chasenrc}-utf8` ] && [ -z `grep '(ENCODE "w"=
)' ${chasenrc}-utf8`]; then
        echo '(ENCODE "u")' >> ${chasenrc}-utf8
fi

note: apologies, this is actually 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557287 but i was having 
trouble mailing that bug


-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid
  APT policy: (500, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-11-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages naist-jdic-utf8 depends on:
ii  chasen-dictutils              2.4.4-10   a Japanese Morphological Analysis 
ii  naist-jdic                    0.4.3-14   free Japanese Dictionaries for Cha

naist-jdic-utf8 recommends no packages.

naist-jdic-utf8 suggests no packages.

-- no debconf information
diff -ruN naist-jdic-0.4.3.old/debian/naist-jdic-utf8.postinst naist-jdic-0.4.3/debian/naist-jdic-utf8.postinst
--- naist-jdic-0.4.3.old/debian/naist-jdic-utf8.postinst	2010-01-21 05:30:11.857482943 +0000
+++ naist-jdic-0.4.3/debian/naist-jdic-utf8.postinst	2010-01-21 05:30:38.487483124 +0000
@@ -47,7 +47,7 @@
     echo "Done! Check ${destdir} directory."
 
 # specify encoding
-    if [ -z `grep '(ENCODE "u")' ${chasenrc}-utf8` -a -z `grep '(ENCODE "w")' ${chasenrc}-utf8`]; then
+    if [ -z `grep '(ENCODE "u")' ${chasenrc}-utf8` ] && [ -z `grep '(ENCODE "w")' ${chasenrc}-utf8`]; then
       echo '(ENCODE "u")' >> ${chasenrc}-utf8
     fi
 

Reply via email to