[debian-edu-commits] debian-edu/ 168/183: Add missing postrm file, making sure to clean up generated files during purge (Closes: #527067). Patch from Phondanai Khanti.

Alexander Alemayhu ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:44 UTC 2014


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

ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.

commit 3372e988349e1f8da55f9d700437c655550a3045
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sat Aug 17 11:55:28 2013 +0000

    Add missing postrm file, making sure to clean up generated files
    during purge (Closes: #527067).  Patch from  Phondanai Khanti.
---
 debian/changelog |  2 ++
 debian/postrm    | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 851a602..6a2ef60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ desktop-profiles (1.4.16) UNRELEASED; urgency=low
   * Integrate non-maintainer uploads 1.4.15+nmu1 and 1.4.15+nmu2.
   * Drop kiosktool from suggests, as it no longer exist in Debian
     (Closes: #674593).  Patch from Andrew Starr-Bochicchio.
+  * Add missing postrm file, making sure to clean up generated files
+    during purge (Closes: #527067).  Patch from  Phondanai Khanti.
 
  -- Bart Cornelis (cobaco) <cobaco at linux.be>  Sun, 11 Jan 2009 03:25:25 +0100
 
diff --git a/debian/postrm b/debian/postrm
new file mode 100755
index 0000000..845c42b
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
+
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+    . /usr/share/debconf/confmodule
+    db_purge
+    rm -rf /var/cache/desktop-profiles
+fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git



More information about the debian-edu-commits mailing list