[DRE-commits] [diaspora-installer] 01/02: remove dbconfig files on purge

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sat Jan 14 15:22:35 UTC 2017


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

praveen pushed a commit to branch master
in repository diaspora-installer.

commit 08f69e34084418492ebe1baabcaef62ecc077805
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sat Jan 14 20:51:32 2017 +0530

    remove dbconfig files on purge
---
 debian/diaspora-common.postrm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/diaspora-common.postrm b/debian/diaspora-common.postrm
index 3c1b2fa..db314e2 100644
--- a/debian/diaspora-common.postrm
+++ b/debian/diaspora-common.postrm
@@ -32,6 +32,14 @@ case "$1" in
     # its configuration purged from the system.
     :
 
+    # purge debconf questions
+    if [ -e /usr/share/debconf/confmodule ]; then
+      # Source debconf library.
+      . /usr/share/debconf/confmodule
+      # Remove my changes to the db.
+      db_purge
+    fi
+
     # we mimic dpkg as closely as possible, so we remove configuration
     # files with dpkg backup extensions too:
     ### Some of the following is from Tore Anderson:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git



More information about the Pkg-ruby-extras-commits mailing list