Package: dict-wn
Version: 3.0-27
Followup-For: Bug #675534

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

package dict-wn
tags 675534 + patch

Dear Maintainer,

To fix invoke-rc.d script in postinst/postrm, the attached patch will help.

Best regards,
- -- 
Ryo IGARASHI, Ph.D.
rigar...@gmail.com


- -- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/3 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

dict-wn depends on no packages.

Versions of packages dict-wn recommends:
pn  dictd | dict-server  <none>

Versions of packages dict-wn suggests:
pn  dict-gcide  <none>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJPypG7AAoJEOx5ooBqGSMZ1boP/0cBVrvrP06qsziY3MQVAlYh
10H50wAhaDQpy7LtXwKJ+SZgU4Wiw0FV1KP2UMRAB/rrf3zrf3YmkfUpbNbCbMWL
nSYdcWMeNgXECsTd3HeQPmD3dghlH4b4+NXwaN2lNlKHf0V4R09Nfy+vt2inDNcG
li8xbj2PtML2jyy86c0EsG+MHYyhM2mlb7AxalwkKKOkzH/p9VzyQBweVqTN13CI
yWORaBKC2G4RTJFFH1eJbsR27bAZaTyt1gezQKhp3t+U6lvJ+4rglrBXZXdkrTNe
rmBX8FrbWYPnvtX91YW2nTe+BO4lurqgQREE+KRx8VpCMowSPoHlZUFSiSRb1J4S
8epWDciC1BFOQL9WZe473lrJWRLfOXhGnEe7dYbAg86PX+r31w8+uDlJDOVroABG
QqRmlicb0JxBG6HDijnFlbkZJcjMC0D8Ss8aUsBIqHaR8+YLMyhvylFbR7A/RMUx
WouaCi+SxFsSdEDy8eB39E+c/3oTKE2Y6sw7repjRYzKiqY9tjuaE1re4N+EOQdF
yGvYFdHdvUnsxKTcpARlqjlhTUyF5dQqIjNx5zg6oLKm7hp9kzDYAH0/pbWGnxxd
pggEljd61R1CghSZyvLJhORGpDVwe1au+NKRaQ0REw+i96cufjJo3649Tuza+vts
Qi0i1uQcRbu5XBqZxgdA
=B6iw
-----END PGP SIGNATURE-----
--- debian/dict-wn.postinst.old	2012-06-02 10:20:23.000000000 +0900
+++ debian/dict-wn.postinst	2012-06-02 10:48:17.000000000 +0900
@@ -9,7 +9,9 @@
 	if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
 
 	if which invoke-rc.d >/dev/null 2>&1; then
-	    invoke-rc.d dictd restart
+            if invoke-rc.d --query dictd restart; [ $? = 104 ]; then
+	        invoke-rc.d dictd restart
+            fi
 	else
 	    [ -x /etc/init.d/dictd ] && /etc/init.d/dictd restart
 	fi
--- debian/dict-wn.postrm.old	2012-06-02 10:46:50.000000000 +0900
+++ debian/dict-wn.postrm	2012-06-02 10:48:24.000000000 +0900
@@ -7,7 +7,9 @@
 	if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
 
         if which invoke-rc.d >/dev/null 2>&1; then
-	    invoke-rc.d dictd restart
+            if invoke-rc.d --query dictd restart; [ $? = 104 ]; then
+	        invoke-rc.d dictd restart
+            fi
 	else
 	    [ -x /etc/init.d/dictd ] && /etc/init.d/dictd restart
 	fi

Reply via email to