[Pkg-nagios-devel] Bug#431523: NMU patch for #431523

Gregory Colpart reg at evolix.fr
Sat Sep 29 20:19:03 UTC 2007


tags 431523 +patch
thanks

[Debian BSP, September 28/29th]

Hello,

Here is a NMU patch to verify if ucf is installed during postrm.

Regards,
-- 
Gregory Colpart <reg at evolix.fr>  GnuPG:1024D/C1027A0E
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
-------------- next part --------------
diff -u nagios-1.4/debian/nagios-common.postrm nagios-1.4/debian/nagios-common.postrm
--- nagios-1.4/debian/nagios-common.postrm
+++ nagios-1.4/debian/nagios-common.postrm
@@ -38,7 +38,11 @@
 			cut -d' ' -f4 | xargs -r -n 1 dpkg-statoverride --remove
 		# remove ucf registered files
 		if [ -f /etc/nagios/cgi.cfg ]; then
-			ucf --purge /etc/nagios/cgi.cfg
+            if [ -x /usr/bin/ucf ]; then
+                ucf --purge /etc/nagios/cgi.cfg
+            else
+                echo >&2 "/etc/nagios/cgi.cfg could not be purged because ucf was not found."
+            fi
 			rm -f /etc/nagios/cgi.cfg
 		fi
 	else
diff -u nagios-1.4/debian/changelog nagios-1.4/debian/changelog
--- nagios-1.4/debian/changelog
+++ nagios-1.4/debian/changelog
@@ -1,3 +1,10 @@
+nagios (2:1.4-3.2) unstable; urgency=low
+
+  * Non-maintainer upload during BSP.
+  * Fix unconditional use of ucf in postrm (Closes: #417023).
+
+ -- Gregory Colpart (evolix) <reg at evolix.fr>  Sat, 29 Sep 2007 18:52:35 +0200
+
 nagios (2:1.4-3.1) unstable; urgency=high
 
   * Non-maintainer upload during BSP.


More information about the Pkg-nagios-devel mailing list