tags 416754 patch
thanks

Hi mate

I uploaded an NMU during the current BSP in order to fix this problem.
You will find the patch attached.

Cheers
Steffen
diff -u gnats-4.1.0/debian/gnats.postrm.in gnats-4.1.0/debian/gnats.postrm.in
--- gnats-4.1.0/debian/gnats.postrm.in
+++ gnats-4.1.0/debian/gnats.postrm.in
@@ -20,8 +20,9 @@
 #
 # Common initialization for install scripts
 #
-
-. /usr/share/debconf/confmodule
+if [ -f /usr/share/debconf/confmodule ]; then
+	. /usr/share/debconf/confmodule
+fi
 
 ###############################################################################
 #
@@ -33,7 +34,7 @@
   update-inetd --remove "#?support.*"
 
   # Remove debconf templates and data
-  db_purge
+  db_purge || true
 fi
 
 ###############################################################################
diff -u gnats-4.1.0/debian/gnats-user.postrm.in gnats-4.1.0/debian/gnats-user.postrm.in
--- gnats-4.1.0/debian/gnats-user.postrm.in
+++ gnats-4.1.0/debian/gnats-user.postrm.in
@@ -18,25 +18,6 @@
 
 ###############################################################################
 #
-# Common initialization for install scripts
-#
-
-. /usr/share/debconf/confmodule
-
-
-###############################################################################
-#
-# Remove the 'gnats' debconf data
-#
-
-if [ "$1" = purge ]; then
-  db_purge
-fi
-
-
-
-###############################################################################
-#
 # Automatically added debhelper stuff
 #
 #DEBHELPER#
diff -u gnats-4.1.0/debian/changelog gnats-4.1.0/debian/changelog
--- gnats-4.1.0/debian/changelog
+++ gnats-4.1.0/debian/changelog
@@ -1,3 +1,13 @@
+gnats (4.1.0-0.2) unstable; urgency=high
+
+  * Non-maintainer upload during BSP
+  * Fix unconditional use of debconf in postrm scripts (Closes: #416754)
+   - Add a check in gnats.postrm.in
+   - Remove the manual debconf calls from gnats-user.postrm.in as they
+     are added by debhelper automatically
+
+ -- Steffen Joeris <[EMAIL PROTECTED]>  Fri, 18 May 2007 22:35:36 +1000
+
 gnats (4.1.0-0.1) unstable; urgency=low
 
   * Non-maintainer upload to fix longstanding l10n and debconf issues

Attachment: pgpCzcw5ViKe7.pgp
Description: PGP signature

Reply via email to