tags 413398 + patch
thanks

The attached patch makes ident2 avoid failures on post-removal when the
system doesn't have the update-inetd utility.

-- 
Regards,
Andreas Henriksson
diff -uri ident2-1.05/debian/ident2.postrm 
ident2-1.05-postrm/debian/ident2.postrm
--- ident2-1.05/debian/ident2.postrm    2007-03-05 13:28:21.000000000 +0100
+++ ident2-1.05-postrm/debian/ident2.postrm     2007-03-05 13:32:41.000000000 
+0100
@@ -5,9 +5,13 @@
 set -e
 
 if [ "$1" = "purge" ]; then
-    update-inetd --remove "/usr/sbin/ident2"
+    if which update-inetd >/dev/null 2>&1 ; then
+        update-inetd --remove "/usr/sbin/ident2"
+    fi
 else
-    update-inetd --pattern "ident2" --disable ident
+    if which update-inetd >/dev/null 2>&1 ; then
+        update-inetd --pattern "ident2" --disable ident
+    fi
 fi
 
 #DEBHELPER#

Reply via email to