Package: how-can-i-help
Version: 0.6
Followup-For: Bug #722594
Control: tags -1 + patch

Thanks for how-can-i-help.

Attached is a patch fixing this issue.

-- 
-- arthur - [email protected] - http://people.debian.org/~adejong --
From af7f0bbd017f82dc484ecd63cb7fd7295bb5cd61 Mon Sep 17 00:00:00 2001
From: Arthur de Jong <[email protected]>
Date: Fri, 13 Sep 2013 14:56:00 +0200
Subject: [PATCH] Remove data directory op purge

Closes: #722594
---
 debian/changelog             |  7 +++++++
 debian/how-can-i-help.postrm | 13 +++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 debian/how-can-i-help.postrm

diff --git a/debian/changelog b/debian/changelog
index aaa0fb7..198173e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+how-can-i-help (0.6+nmu1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Remove data directory op purge (Closes: #722594)
+
+ -- Arthur de Jong <[email protected]>  Fri, 13 Sep 2013 14:46:58 +0200
+
 how-can-i-help (0.6) unstable; urgency=low
 
   * Add --quiet option. Contributes to fixing #720981.
diff --git a/debian/how-can-i-help.postrm b/debian/how-can-i-help.postrm
new file mode 100644
index 0000000..6dab8b3
--- /dev/null
+++ b/debian/how-can-i-help.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+DATADIR="/var/lib/how-can-i-help"
+
+# remove data directory on purge
+if [ "$1" = "purge" ] && [ -d "$DATADIR" ]
+then
+  rm -rf "$DATADIR"
+fi
+
+#DEBHELPER#
-- 
1.8.4.rc3

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to