[Python-modules-commits] r12419 - in packages/libapache2-mod-python/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Mar 27 13:08:53 UTC 2010


    Date: Saturday, March 27, 2010 @ 13:08:39
  Author: morph
Revision: 12419

* debian/libapache2-mod-python.{prerm, postrm}
  - move a2dismod from postrm (executed too late in the purge process) to
    prerm, so purge can disable the module when it's still available; thanks
    to Lucas Nussbaum for the report; Closes: #574229

Added:
  packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.prerm
Modified:
  packages/libapache2-mod-python/trunk/debian/changelog
  packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm

Modified: packages/libapache2-mod-python/trunk/debian/changelog
===================================================================
--- packages/libapache2-mod-python/trunk/debian/changelog	2010-03-27 10:47:33 UTC (rev 12418)
+++ packages/libapache2-mod-python/trunk/debian/changelog	2010-03-27 13:08:39 UTC (rev 12419)
@@ -1,3 +1,12 @@
+libapache2-mod-python (3.3.1-9) UNRELEASED; urgency=low
+
+  * debian/libapache2-mod-python.{prerm, postrm}
+    - move a2dismod from postrm (executed too late in the purge process) to
+      prerm, so purge can disable the module when it's still available; thanks
+      to Lucas Nussbaum for the report; Closes: #574229
+
+ -- Sandro Tosi <morph at debian.org>  Sat, 27 Mar 2010 12:58:43 +0100
+
 libapache2-mod-python (3.3.1-8) unstable; urgency=medium
 
   [ Emilio Pozuelo Monfort ]

Modified: packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm
===================================================================
--- packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm	2010-03-27 10:47:33 UTC (rev 12418)
+++ packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm	2010-03-27 13:08:39 UTC (rev 12419)
@@ -2,10 +2,6 @@
 
 set -e
 
-if [ "$1" = "remove" -o "$1" = "purge" ]; then
-    a2dismod python
-fi
-
 # mod_python.load renamed to python.load in 3.3.1-3
 if dpkg --compare-versions "$2" lt-nl "3.3.1-3"; then
     # downgrading to < 3.3.1-3 -- we have to restore pseudo conffile

Added: packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.prerm
===================================================================
--- packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.prerm	                        (rev 0)
+++ packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.prerm	2010-03-27 13:08:39 UTC (rev 12419)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = remove ] || [ "$1" = purge ]; then
+	if [ -e /etc/apache2/apache2.conf ] && [ -x /usr/sbin/a2dismod ]; then
+		/usr/sbin/a2dismod python || true
+	fi
+fi
+
+#DEBHELPER#
+
+exit 0




More information about the Python-modules-commits mailing list