[Mplayer-cvslog] CVS: main/debian postrm,1.1,1.2

Dariush Pietrzak CVS eyck at mplayerhq.hu
Sun Jan 12 14:20:45 CET 2003


Update of /cvsroot/mplayer/main/debian
In directory mail:/var/tmp.root/cvs-serv19639

Modified Files:
	postrm 
Log Message:
Purge debconf database on purge.


Index: postrm
===================================================================
RCS file: /cvsroot/mplayer/main/debian/postrm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- postrm	1 Sep 2002 09:33:36 -0000	1.1
+++ postrm	12 Jan 2003 13:20:25 -0000	1.2
@@ -3,7 +3,14 @@
 set -e
 
 if [ "$1" = "purge" ]; then
-  if [ -d /etc/mplayer/ ]; then
-    rm -rf /etc/mplayer/
-  fi
+	if [ -e /usr/share/debconf/confmodule ]; then
+		# Source debconf library.
+		. /usr/share/debconf/confmodule
+		# Remove my changes to the db.
+		db_purge
+	fi
+
+	if [ -d /etc/mplayer/ ]; then
+		rm -rf /etc/mplayer/
+	fi
 fi



More information about the MPlayer-cvslog mailing list