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

adejong at users.alioth.debian.org adejong at users.alioth.debian.org
Sun May 26 19:35:49 UTC 2013


    Date: Sunday, May 26, 2013 @ 19:35:47
  Author: adejong
Revision: 24571

  * Remove code for renaming mod_python.load to python.load because we are
    not supporting upgrades from etch.

Modified:
  packages/libapache2-mod-python/trunk/debian/changelog
  packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postinst
Deleted:
  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	2013-05-26 19:05:30 UTC (rev 24570)
+++ packages/libapache2-mod-python/trunk/debian/changelog	2013-05-26 19:35:47 UTC (rev 24571)
@@ -18,11 +18,13 @@
     call.
   * Remove generated file to support building twice in a row.
   * Simple spelling fix in Python docstring (thanks lintian).
+  * Remove code for renaming mod_python.load to python.load because we are
+    not supporting upgrades from etch.
 
   [ Jakub Wilk ]
   * Use canonical URIs for Vcs-* fields.
 
- -- Arthur de Jong <adejong at debian.org>  Sun, 26 May 2013 19:47:30 +0200
+ -- Arthur de Jong <adejong at debian.org>  Sun, 26 May 2013 21:27:35 +0200
 
 libapache2-mod-python (3.3.1-9) unstable; urgency=low
 

Modified: packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postinst
===================================================================
--- packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postinst	2013-05-26 19:05:30 UTC (rev 24570)
+++ packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postinst	2013-05-26 19:35:47 UTC (rev 24571)
@@ -3,17 +3,6 @@
 
 #DEBHELPER#
 
-OLDENABLED=/etc/apache2/mods-enabled/mod_python.load
-OLDAVAILABLE=/etc/apache2/mods-available/mod_python.load
-
-# Before 3.3.1-3, the module had a different name, so if we are upgrading
-# from such an old package, re-enable the module if it was enabled
-if dpkg --compare-versions "$2" lt-nl "3.3.1-3"; then
-	test -L $OLDENABLED && rm -f $OLDENABLED && a2enmod python >/dev/null || true
-	test -e $OLDAVAILABLE && rm -f $OLDAVAILABLE
-fi
-
-
 reload_apache()
 {
 	if apache2ctl configtest 2>/dev/null; then

Deleted: packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm
===================================================================
--- packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm	2013-05-26 19:05:30 UTC (rev 24570)
+++ packages/libapache2-mod-python/trunk/debian/libapache2-mod-python.postrm	2013-05-26 19:35:47 UTC (rev 24571)
@@ -1,17 +0,0 @@
-#! /bin/sh
-
-set -e
-
-# 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
-    if [ ! -e /etc/apache2/mods-available/mod_python.load ]; then
-        echo "LoadModule python_module /usr/lib/apache2/modules/mod_python.so" > /etc/apache2/mods-available/mod_python.load
-    fi
-elif [ -e /etc/apache2/mods-available/mod_python.load ]; then
-    rm -f /etc/apache2/mods-available/mod_python.load
-fi
-
-#DEBHELPER#
-
-exit 0




More information about the Python-modules-commits mailing list