[pkg-fso-commits] [SCM] gpsd for fso branch, debian, updated. debian/0.8-2-20-gf2387cf

Luca Capello luca at pca.it
Fri May 29 00:02:11 UTC 2009


The following commit has been merged in the debian branch:
commit 13a2ec3a1f81637940f2c5ccac1d8131356a6c5e
Author: Luca Capello <luca at pca.it>
Date:   Wed May 27 00:31:58 2009 +0200

    debian/fso-gpsd.init: use test brackets

diff --git a/debian/changelog b/debian/changelog
index 8c1f597..0f9bc81 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ fso-gpsd (0.8-3) UNRELEASED; urgency=low
   * debian/fso-gpsd.init:
     + add frameworkd to LSB Required-Start:/-Stop: dependencies.
     + move `set -e` at the beginning.
+    + use test brackets to check if the package has been removed
+      but not purged (and add a useful comment).
     + add --oknodo to start case (Standards-Version 3.8.1).
   * debian/rules:
     + generate the manpage, thanks to lintian (this unfortunately
diff --git a/debian/fso-gpsd.init b/debian/fso-gpsd.init
index 6d66ada..72dc397 100644
--- a/debian/fso-gpsd.init
+++ b/debian/fso-gpsd.init
@@ -26,7 +26,10 @@ NAME=fso-gpsd
 DESC=fso-gpsd
 DAEMON_OPTS="-S localhost:gpsd -P /var/run/$NAME.pid"
 
-test -x $DAEMON || exit 0
+
+# Gracefully exit if the package has been removed (but not purged).
+[ -x "$DAEMON" ] || exit 0
+
 
 case "$1" in
   start)

-- 
gpsd for fso



More information about the pkg-fso-commits mailing list