[Pkg-apache-commits] [SCM] Debian packaging for apache2 (Apache HTTPD 2.x) branch, next, updated. 1b061a0344c5f3cc459e769e2ad0e62be6f570cb

Stefan Fritsch sf at sfritsch.de
Sat Mar 17 20:45:17 UTC 2012


The following commit has been merged in the next branch:
commit f1143974ab125bc5482cfe0c385ae3c8f443b0d2
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sat Mar 17 21:08:41 2012 +0100

    purge apache2.2-common's postrm
    
    Otherwise it would cause havoc on purge

diff --git a/debian/apache2.postinst b/debian/apache2.postinst
index 94d5b88..924ba00 100644
--- a/debian/apache2.postinst
+++ b/debian/apache2.postinst
@@ -403,4 +403,14 @@ esac
 
 #DEBHELPER#
 
+# And now the traditional insanity of apache2 upgrades (see #390823):
+# If everything went well, we need to purge apache2.2-common's postrm, or
+# purging that package will remove our logs, caches, ...
+if [ "$1" = configure ] ; then
+	oldpostrm=$(dpkg-query -c apache2.2-common postrm||true)
+	if [ -n "$oldpostrm" ] ; then
+		rm -f "$oldpostrm"
+	fi
+fi
+
 exit 0

-- 
Debian packaging for apache2 (Apache HTTPD 2.x)



More information about the Pkg-apache-commits mailing list