r44933 - in /packages/wordnet/trunk/debian: changelog dict-wn.postinst dict-wn.postrm

tille at users.alioth.debian.org tille at users.alioth.debian.org
Fri Jun 1 12:19:34 UTC 2012


Author: tille
Date: Fri Jun  1 12:19:34 2012
New Revision: 44933

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=44933
Log:
Fix #607638 (verify that init script exists)

Modified:
    packages/wordnet/trunk/debian/changelog
    packages/wordnet/trunk/debian/dict-wn.postinst
    packages/wordnet/trunk/debian/dict-wn.postrm

Modified: packages/wordnet/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/changelog?rev=44933&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/changelog (original)
+++ packages/wordnet/trunk/debian/changelog Fri Jun  1 12:19:34 2012
@@ -6,6 +6,9 @@
      - Standards-Version: 3.9.3 (no changes needed)
      - dict-wn: Only Recommends: dictd | dict-server
        Closes: #673620
+  * debian/dict-wn.post{inst,rm}: Verify that init script really
+    exists
+    Closes: #607638
 
  -- Andreas Tille <tille at debian.org>  Fri, 01 Jun 2012 13:45:40 +0200
 

Modified: packages/wordnet/trunk/debian/dict-wn.postinst
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/dict-wn.postinst?rev=44933&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/dict-wn.postinst (original)
+++ packages/wordnet/trunk/debian/dict-wn.postinst Fri Jun  1 12:19:34 2012
@@ -8,11 +8,10 @@
      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
+	    [ -x /etc/init.d/dictd ] && /etc/init.d/dictd restart
 	fi
 
 	exit 0

Modified: packages/wordnet/trunk/debian/dict-wn.postrm
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/dict-wn.postrm?rev=44933&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/dict-wn.postrm (original)
+++ packages/wordnet/trunk/debian/dict-wn.postrm Fri Jun  1 12:19:34 2012
@@ -6,11 +6,10 @@
     remove|purge)
 	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
+	    [ -x /etc/init.d/dictd ] && /etc/init.d/dictd restart
 	fi
 	exit 0
     ;;




More information about the debian-science-commits mailing list