[Pkg-mono-svn-commits] [SCM] mod-mono branch, master, updated. debian/2.6.3-4

Jo Shields directhex at apebox.org
Thu Nov 25 22:59:46 UTC 2010


The following commit has been merged in the master branch:
commit 07a4ab24ce4d147e99fd4ce3de553dd1999d8984
Author: Jo Shields <directhex at apebox.org>
Date:   Thu Nov 25 09:05:09 2010 +0000

    As it turns out, the change in 2.0-1 to prevent postinst failure has an unwanted side effect - it is possible that mod_mono.conf will be created (via touch) before dpkg handles the conffiles - meaning it will prompt users about replacing the empty file. Instead, just exit without an error when the config file is missing (Closes: #604206)

diff --git a/debian/libapache2-mod-mono.config b/debian/libapache2-mod-mono.config
index 15aae4a..3c24711 100644
--- a/debian/libapache2-mod-mono.config
+++ b/debian/libapache2-mod-mono.config
@@ -50,10 +50,10 @@ fi
 # Change the includes as appropriate
 MONO_CONF=/etc/apache2/mods-available/mod_mono.conf
 
-# Gracefully deal with users who have deleted their config for some reason
-# (i.e. don't bail out in postinst)
+# Exit without an error if the user has deleted their config for some reason
+# We can't merely create a new config here, as it breaks conffile tracking
 if [ ! -e "$MONO_CONF" ]; then
-    touch $MONO_CONF
+    exit 0
 fi
 
 case "$USE_MONO_SERVER" in

-- 
mod-mono



More information about the Pkg-mono-svn-commits mailing list