Attached you can find a patch. See

http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html

for reference.

Problem: On the upgrade the old (buggy) prerm script is called,
AFAICS. On the following upgrade the problem is gone.


Hope this helps. Regards

Harri
diff -ur tmp/krb5-1.8+dfsg/debian/changelog krb5-1.8+dfsg/debian/changelog
--- tmp/krb5-1.8+dfsg/debian/changelog	2010-04-11 13:02:02.000000000 +0200
+++ krb5-1.8+dfsg/debian/changelog	2010-04-11 12:54:34.000000000 +0200
@@ -1,3 +1,10 @@
+krb5 (1.8+dfsg-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * fix prerm script (Closes: #577389)
+
+ -- Harald Dunkel <[email protected]>  Sun, 11 Apr 2010 12:53:36 +0200
+
 krb5 (1.8+dfsg-1.1) unstable; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff -ur tmp/krb5-1.8+dfsg/debian/krb5-kdc.prerm krb5-1.8+dfsg/debian/krb5-kdc.prerm
--- tmp/krb5-1.8+dfsg/debian/krb5-kdc.prerm	2010-04-11 13:02:02.000000000 +0200
+++ krb5-1.8+dfsg/debian/krb5-kdc.prerm	2010-04-11 12:53:25.000000000 +0200
@@ -2,8 +2,10 @@
 
 set -e
 
-if which update-inetd >/dev/null 2>&1 ; then
-    update-inetd --remove '#?krb5_prop.*/usr/sbin/kpropd'
+if test "remove" = "$1"; then
+    if which update-inetd >/dev/null 2>&1 ; then
+	update-inetd --remove '#?krb5_prop.*/usr/sbin/kpropd'
+    fi
 fi
 
 #DEBHELPER#

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to