tags 416660 patch
thanks

Hi José Luis,

I've prepared a 0-day NMU to fix this RC bug, guarding the debconf call in
the postrm with a check for debconf's availability.  The patch is attached,
the NMU will be uploaded to incoming shortly.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/
diff -u bindgraph-0.2a/debian/changelog bindgraph-0.2a/debian/changelog
--- bindgraph-0.2a/debian/changelog
+++ bindgraph-0.2a/debian/changelog
@@ -1,3 +1,12 @@
+bindgraph (0.2a-2.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * High-urgency upload for RC bugfix.
+  * Guard the call to db_get in the postrm, to avoid failures in the case
+    that debconf has already been removed from the system.  Closes: #416660.
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Wed, 16 May 2007 21:13:58 -0700
+
 bindgraph (0.2a-2) unstable; urgency=low  
 
   * All localization fixes below prepared by Christian Perrier. Many thanks.
diff -u bindgraph-0.2a/debian/postrm bindgraph-0.2a/debian/postrm
--- bindgraph-0.2a/debian/postrm
+++ bindgraph-0.2a/debian/postrm
@@ -2,7 +2,6 @@
 # postrm script for CourierGraph
 # by Jose Luis Tallon <[EMAIL PROTECTED]>
 
-. /usr/share/debconf/confmodule
 set -e
 
 # summary of how this script can be called:
@@ -23,10 +22,13 @@
 
 case "$1" in
         purge)
-		db_get bindgraph/stay_on_purge
-		if [ "$RET" = "true" ]; then
-			if [ -d $DATADIR ]; then rm -rf $DATADIR
-			else rm -f $DATADIR/bindgraph.rrd
+		if [ -e /usr/share/debconf/confmodule ]; then
+			. /usr/share/debconf/confmodule
+			db_get bindgraph/stay_on_purge
+			if [ "$RET" = "true" ]; then
+				if [ -d $DATADIR ]; then rm -rf $DATADIR
+				else rm -f $DATADIR/bindgraph.rrd
+				fi
 			fi
 		fi
 		rm -rf $CACHEDIR

Reply via email to