[hamradio-commits] [xastir] 02/02: Remove path from delgroup in postrm to allow use of local scripts

Iain Learmonth irl-guest at moszumanska.debian.org
Fri May 15 12:38:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

irl-guest pushed a commit to branch master
in repository xastir.

commit f9a013d443184a7548ee10728a543f0b9924fd7e
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Fri May 15 13:05:38 2015 +0100

    Remove path from delgroup in postrm to allow use of local scripts
---
 debian/changelog     | 5 +++++
 debian/xastir.postrm | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d292fd2..31d74aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,11 @@ xastir (2.0.6-4) unstable; urgency=medium
 
   * Included Dutch translation of debconf templates (Closes: #785331)
     - With thanks to the translation team for their work on this.
+  * debian/xastir.postrm:
+    - Removed test for /usr/sbin/delgroup and changed to testing for any
+      usable binary in the path named delgroup instead to allow for the
+      use of local scripts. (Fixes Lintian
+      command-with-path-in-maintainer-script)
 
  -- Iain R. Learmonth <irl at fsfe.org>  Fri, 15 May 2015 12:57:58 +0100
 
diff --git a/debian/xastir.postrm b/debian/xastir.postrm
index 9dd8dbe..d1fc803 100644
--- a/debian/xastir.postrm
+++ b/debian/xastir.postrm
@@ -9,7 +9,7 @@ GROUP=xastir-ax25
 
 if [ "$1" = "purge" ]; then
   if getent group $GROUP >/dev/null; then
-    if [ -x /usr/sbin/delgroup ]; then
+    if which delgroup >/dev/null; then
       echo "Removing xastir-ax25 group..."
       delgroup --system $GROUP || echo "Could not remove xastir-ax25 group."
     fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/xastir.git



More information about the pkg-hamradio-commits mailing list