tags 591677 + patch
tags 591677 + pending
thanks

Dear maintainer,

I've prepared an NMU for mysqmail (versioned as 0.4.9-3.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

diff -u mysqmail-0.4.9/debian/mysqmail.postinst mysqmail-0.4.9/debian/mysqmail.postinst
--- mysqmail-0.4.9/debian/mysqmail.postinst
+++ mysqmail-0.4.9/debian/mysqmail.postinst
@@ -2,6 +2,10 @@
 
 set -e
 
+if [ "$1" != "configure" ]; then
+    exit 0
+fi
+
 PATH_CONF_FILE=/etc/mysqmail.conf
 
 . /usr/share/debconf/confmodule
diff -u mysqmail-0.4.9/debian/changelog mysqmail-0.4.9/debian/changelog
--- mysqmail-0.4.9/debian/changelog
+++ mysqmail-0.4.9/debian/changelog
@@ -1,3 +1,12 @@
+mysqmail (0.4.9-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patch from Marco Rodrigues to fix handling of configuration file
+    in maintainer scripts (Closes: #591677)
+  * Urgency medium due to RC bug fix
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org>  Fri, 10 Sep 2010 14:22:16 +0200
+
 mysqmail (0.4.9-3) unstable; urgency=low
 
   * Maintainer scripts are now also working if DTC is not configured yet
reverted:
--- mysqmail-0.4.9/debian/mysqmail.prerm
+++ mysqmail-0.4.9.orig/debian/mysqmail.prerm
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-rm -f /etc/mysqmail.conf
-
-#DEBHELPER#
-
-exit 0
--- mysqmail-0.4.9.orig/debian/mysqmail.postrm
+++ mysqmail-0.4.9/debian/mysqmail.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+# Remove configuration if package is being purged
+if [ "$1" = "purge" ]; then
+	rm -f /etc/mysqmail.conf
+fi
+
+#DEBHELPER#
+
+exit 0

Reply via email to