Code

Only call ucf on purge if it's available
authortolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Wed, 7 Sep 2011 12:03:22 +0000 (12:03 +0000)
committertolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Wed, 7 Sep 2011 12:03:22 +0000 (12:03 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1943 98d490a6-b407-0410-aaaa-fdee166ba3f5

debian/changelog
debian/postrm

index 54855dffac248a41feb942452a4567a576626d1e..1a4ea0f51bb2acdf520560ccb34e719612a58fe2 100644 (file)
@@ -1,9 +1,11 @@
-nagvis (1:1.4.6-2) UNRELEASED; urgency=low
+nagvis (1:1.4.6-2) UNRELEASED; urgency=medium
 
   * NOT RELEASED YET
   * Add myself to uploaders
+  * Only call ucf on purge if it's available (Closes: #620037)
+    * Set urgency to medium due to RC bug fix
 
- -- Alexander Reichle-Schmehl <tolimar@debian.org>  Wed, 07 Sep 2011 13:57:21 +0200
+ -- Alexander Reichle-Schmehl <tolimar@debian.org>  Wed, 07 Sep 2011 14:02:20 +0200
 
 nagvis (1:1.4.6-1.1) unstable; urgency=low
 
index 3535fedbed28cc6cf2078749b47e0cea3ac7b9a9..40263c6917cf693bee78d7f4a5752a1bc2dac43e 100644 (file)
@@ -41,7 +41,9 @@ esac
 if [ "$1" = "purge" ]; then
        for file in apache.conf nagvis.ini.php; do
                rm -f /etc/nagvis/$file
-               ucf --debconf-ok --purge /etc/nagvis/$file
+               if [ -x /usr/bin/ucf ] ; then
+                       /usr/bin/ucf --debconf-ok --purge /etc/nagvis/$file
+               fi
        done
 
        #if [ -e /etc/apache2/conf.d/nagvis.conf ]; then