changeset 392:794030e45053 noffle

[svn] fixed debconf in handling in postrm
author godisch
date Sat, 24 May 2003 07:05:53 +0100
parents 6cb66f5a0479
children e113df4af08b
files debian/changelog debian/postrm
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/debian/changelog	Fri May 23 10:33:10 2003 +0100
+++ b/debian/changelog	Sat May 24 07:05:53 2003 +0100
@@ -1,8 +1,9 @@
 noffle (1.1.4-8) unstable; urgency=low
 
+  * Fixed postrm
   * Updated standards version.
 
- -- Martin A. Godisch <godisch@debian.org>  Thu, 15 May 2003 20:08:25 +0200
+ -- Martin A. Godisch <godisch@debian.org>  Sat, 24 May 2003 08:05:10 +0200
 
 noffle (1.1.4-7) unstable; urgency=low
 
--- a/debian/postrm	Fri May 23 10:33:10 2003 +0100
+++ b/debian/postrm	Sat May 24 07:05:53 2003 +0100
@@ -1,9 +1,7 @@
 #!/bin/sh
-# $Id: postrm 460 2003-02-23 15:16:46Z godisch $
+# $Id: postrm 534 2003-05-24 06:05:53Z godisch $
 
 set -e
-. /usr/share/debconf/confmodule
-db_version 2.0
 
 server_config=/etc/news/noffle.conf
 debian_config=/etc/default/noffle
@@ -20,8 +18,10 @@
 		$server_config $server_config.old \
 		$debian_config $debian_config.old
 	rm -rf /etc/noffle /var/spool/noffle
-	db_purge
+	if [ -e /usr/share/debconf/confmodule ]; then
+		. /usr/share/debconf/confmodule
+		db_purge
+	fi
 fi
 
-db_stop
 exit 0