[SCM] libutempter library packaging branch, master, updated. debian/1.1.5-4-9-g7cd5ffe

Felix Geyer fgeyer at moszumanska.debian.org
Thu May 28 21:02:48 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/krap/libutempter.git;a=commitdiff;h=c49022c

The following commit has been merged in the master branch:
commit c49022c430bc2c4716ca4161a0a2fa9326dad5b7
Author: Felix Geyer <fgeyer at debian.org>
Date:   Thu May 28 20:08:23 2015 +0200

    Don't hardcode the delgroup path.
---
 debian/changelog           | 1 +
 debian/libutempter0.postrm | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e2d52d8..479cc36 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ libutempter (1.1.6-1) UNRELEASED; urgency=medium
     - Add Add keep_env_build_flags.diff
   * Add a watch file, thanks to David Gilman. (Closes: #747483)
   * Add Vcs-* control fields.
+  * Don't hardcode the delgroup path.
 
  -- Felix Geyer <fgeyer at debian.org>  Thu, 28 May 2015 18:23:38 +0200
 
diff --git a/debian/libutempter0.postrm b/debian/libutempter0.postrm
index 98787f8..232d3a2 100644
--- a/debian/libutempter0.postrm
+++ b/debian/libutempter0.postrm
@@ -5,9 +5,11 @@ set -e
 
 case "$1" in
     purge)
-        if [ -x /usr/sbin/delgroup ]; then
+        if [ -x "$(command -v deluser)" ]; then
             echo "Deleting utempter group..."
             delgroup --quiet --system utempter > /dev/null || true
+        else
+            echo >&2 "not removing utempter system group because the deluser command was not found"
         fi
     ;;
 

-- 
libutempter library packaging



More information about the pkg-kde-commits mailing list