diff debian/postrm @ 325:c36eb2596531 noffle

[svn] fixed inclusion of db_*
author godisch
date Sun, 23 Feb 2003 15:16:46 +0000
parents 5ec39beae9c5
children 794030e45053
line wrap: on
line diff
--- a/debian/postrm	Sat Feb 22 21:54:34 2003 +0000
+++ b/debian/postrm	Sun Feb 23 15:16:46 2003 +0000
@@ -1,7 +1,9 @@
 #!/bin/sh
-# $Id: postrm 459 2003-02-22 21:54:34Z godisch $
+# $Id: postrm 460 2003-02-23 15:16:46Z godisch $
 
 set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
 
 server_config=/etc/news/noffle.conf
 debian_config=/etc/default/noffle
@@ -18,11 +20,8 @@
 		$server_config $server_config.old \
 		$debian_config $debian_config.old
 	rm -rf /etc/noffle /var/spool/noffle
-	if [ -e /usr/share/debconf/confmodule ]; then
-		. /usr/share/debconf/confmodule
-		db_purge
-		db_stop
-	fi
+	db_purge
 fi
 
+db_stop
 exit 0