~ubuntu-branches/ubuntu/utopic/libapache2-mod-python/utopic

« back to all changes in this revision

Viewing changes to debian/libapache2-mod-python.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Debian Python Modules Team, Sandro Tosi
  • Date: 2010-03-27 14:41:02 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100327144102-s625b2uxl19ep4dw
Tags: 3.3.1-9
[ Sandro Tosi ]
* 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
* debian/control
  - bump Standards-Version to 3.8.4 (no changes needed)
  - updated Section to 'httpd' to match override file

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
if [ "$1" = "remove" -o "$1" = "purge" ]; then
6
 
    # module deactivation may fail, if the package was "removed" before and then later "purged"
7
 
    # or if the local system administrator disabled the module manually
8
 
    a2dismod python || true
9
 
fi
10
 
 
11
5
# mod_python.load renamed to python.load in 3.3.1-3
12
6
if dpkg --compare-versions "$2" lt-nl "3.3.1-3"; then
13
7
    # downgrading to < 3.3.1-3 -- we have to restore pseudo conffile