[med-svn] r10442 - trunk/packages/gnumed-client/trunk/debian
Andreas Tille
tille at alioth.debian.org
Thu Apr 19 20:42:35 UTC 2012
Author: tille
Date: 2012-04-19 20:42:35 +0000 (Thu, 19 Apr 2012)
New Revision: 10442
Added:
trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm
Modified:
trunk/packages/gnumed-client/trunk/debian/changelog
trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.prerm
Log:
Proper clean up after purging the package
Modified: trunk/packages/gnumed-client/trunk/debian/changelog
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/changelog 2012-04-19 20:34:37 UTC (rev 10441)
+++ trunk/packages/gnumed-client/trunk/debian/changelog 2012-04-19 20:42:35 UTC (rev 10442)
@@ -4,6 +4,8 @@
- gnumed-client-doc from Depends to Recommends
- increased version of freediams from 0.5.4 to 0.7.1
*** FIXME: wait with upload until freediams is back in Debian ***
+ * debian/gnumed-client-de.postrm: Clean up properly
+ Closes: #668789
-- Andreas Tille <tille at debian.org> Thu, 19 Apr 2012 22:30:21 +0200
Added: trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm (rev 0)
+++ trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.postrm 2012-04-19 20:42:35 UTC (rev 10442)
@@ -0,0 +1,33 @@
+#!/bin/sh
+# postrm script for gnumed-client-de
+#
+# see: dh_installdeb(1)
+
+set -e
+
+PROG=gnumed
+GROUP=${PROG}
+
+KVKDIR=/var/spool/kvkd/
+
+case "$1" in
+ remove|purge)
+ if [ -d "$KVKDIR" ] ; then
+ rm -rf "$KVKDIR"
+ fi
+ ;;
+ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Modified: trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.prerm
===================================================================
--- trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.prerm 2012-04-19 20:34:37 UTC (rev 10441)
+++ trunk/packages/gnumed-client/trunk/debian/gnumed-client-de.prerm 2012-04-19 20:42:35 UTC (rev 10442)
@@ -11,17 +11,18 @@
KVKDIR=/var/spool/kvkd/
case "$1" in
- purge)
- TESTGROUP=`getent group ${GROUP}` || true
- if [ ! -z "${TESTGROUP}" ] ; then
- delgroup "${GROUP}" >/dev/null
+ remove|purge)
+ if [ "$1" = "purge" ] ; then
+ TESTGROUP=`getent group ${GROUP}` || true
+ if [ ! -z "${TESTGROUP}" ] ; then
+ delgroup "${GROUP}" >/dev/null
+ fi
fi
-
if [ -d "$KVKDIR" ] ; then
rm -rf "$KVKDIR"
fi
;;
- remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
More information about the debian-med-commit
mailing list