tags 566556 + patch
thanks

Hello from Thailand Mini-DebCamp 2010 BSP.

If the intention of the package is to "Suggests: dictd",
it should restart dictd only when dictd is present,
and never fail otherwise.

I've prepared a patch for this (attached). Is it OK for NMU?

Regards,
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
Index: dict-xdict-0.1/debian/postinst
===================================================================
--- dict-xdict-0.1.orig/debian/postinst	2010-03-14 15:37:47.000000000 +0700
+++ dict-xdict-0.1/debian/postinst	2010-03-14 15:38:55.000000000 +0700
@@ -8,11 +8,12 @@
      configure)
 	if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
 
-	# if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart; fi
-	if which invoke-rc.d >/dev/null 2>&1; then
-	    invoke-rc.d dictd restart
-	else
-	    /etc/init.d/dictd restart
+	if [ -x /etc/init.d/dictd ]; then
+		if which invoke-rc.d >/dev/null 2>&1; then
+			invoke-rc.d dictd restart
+		else
+			/etc/init.d/dictd restart
+		fi
 	fi
 
 	exit 0

Reply via email to