chiark / gitweb /
command -v
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 2 Jun 2012 15:22:13 +0000 (16:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 2 Jun 2012 15:22:13 +0000 (16:22 +0100)
debian/changelog
debian/postinst
debian/prerm

index 1c2a5e14b1ce198c8b3b99ed18820f976a87c40f..1c0c605a0ae8e0a1fe7b7c1fa224d22fe57aecdc 100644 (file)
@@ -10,7 +10,8 @@ userv (1.1.0~~iwj) unstable; urgency=low
   * Revision control switched from cvs to git.
   * Update my email address.
 
-  Debian packaging improvements:
+  Debian packaging improvements and bugfixes:
+  * Use `command -v' instead of `type' in maintainer scripts.
   * Remove /var/run/userv from the .deb.
     (Along with the change in 1.0.6, Closes: #630528.)
   * The new version will ensure a rebuild and therefore completely deal
index 583b1b719c5abd47a72d1e610b53906db9a62e46..a6879b93c70cf4732eb9dd199e6b8dfb414199a2 100644 (file)
@@ -2,7 +2,7 @@
 set -e
 update-rc.d userv defaults 19 50 > /dev/null
 
-if type invoke-rc.d >/dev/null 2>&1; then
+if command -v invoke-rc.d >/dev/null 2>&1; then
     invoke-rc.d userv start
 else
     /etc/init.d/userv start
index c40e404a32257905feab1dbc69b6c935387c9643..0be459b0894463ed94a3b89354df0f1d89d93164 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-if type invoke-rc.d >/dev/null 2>&1; then
+if command -v invoke-rc.d >/dev/null 2>&1; then
        invoke-rc.d userv stop
 else
        /etc/init.d/userv stop