[tryton-debian-vcs] tryton-server branch debian updated. debian/3.6.0-1-4-g3bc5d18

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Fri May 15 17:14:50 UTC 2015


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=debian/3.6.0-1-4-g3bc5d18

commit 3bc5d18f7fd5a586d40c919b42485d328f2e9464
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 15 19:04:04 2015 +0200

    Fixing spelling error in README.
    
    - Fixes lintian warning spelling-error-in-readme-debian.

diff --git a/debian/tryton-server.README.Debian b/debian/tryton-server.README.Debian
index 6486fa0..7077d00 100644
--- a/debian/tryton-server.README.Debian
+++ b/debian/tryton-server.README.Debian
@@ -66,7 +66,7 @@ Preparing the Tryton server
     Note: The fingerprint of connected servers is stored in the clients
     known_hosts file. When a server is changed for its SSL usage, the client
     will refuse to reconnect to this server. Removing the according line
-    from ~/.config/tryton/<version>/known_hosts will allow to connect to
+    from ~/.config/tryton/<version>/known_hosts will allow one to connect to
     the server again.
 
 
commit b234a0197dbc98f97d2380c4adc8b597c845232e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 15 18:59:31 2015 +0200

    Using POSIX-compatible pathfind in postrm to remove hardcoded path.
    
    - S. developer reference 6.4
    - Fixes lintian warning command-with-path-in-maintainer-script

diff --git a/debian/tryton-server.postrm b/debian/tryton-server.postrm
index 4c11566..2d6c974 100644
--- a/debian/tryton-server.postrm
+++ b/debian/tryton-server.postrm
@@ -11,6 +11,21 @@ TRYTON_CONFFILEPRE34="${TRYTON_CONFDIR}/trytond.conf.pre34"
 TRYTON_LOGDIR="/var/log/tryton"
 TRYTON_HOMEDIR="/var/lib/tryton"
 
+# POSIX-compliant shell function to check for the existence of a command
+# s. developers-reference 6.4
+pathfind() {
+    OLDIFS="$IFS"
+    IFS=:
+    for p in $PATH; do
+        if [ -x "$p/$*" ]; then
+            IFS="$OLDIFS"
+            return 0
+        fi
+    done
+    IFS="$OLDIFS"
+    return 1
+}
+
 case "${1}" in
 	purge)
 		# Removing evtl. dpkg-statoverrides
@@ -20,7 +35,7 @@ case "${1}" in
 		done
 
 		# Removing system user
-		if [ -x /usr/sbin/deluser ]
+		if pathfind deluser;
 		then
 			deluser --quiet --system ${TRYTON_USER}
 		fi
-- 
tryton-server



More information about the tryton-debian-vcs mailing list