Package: libapache2-mod-python Severity: normal Tags: patch --- Please enter the report below this line. ---
Purging the package after removal fails due to the missing "python" module for a2dismod. how to reproduce: - install the package - remove it - purge the configuration The last step fails due to an exitcode 1 from the post removal script. The attached patch tolerates a failure of "a2dismod python" and thus allows to purge the package successfully. thanks for your work, Lars --- System information. --- Architecture: i386 Kernel: Linux 2.6.30-1-686 Debian Release: squeeze/sid 990 testing localhost --- Package information. --- Depends (Version) | Installed =========================================-+-============= libapache2-mod-python2.3 (>= 3.1.3-3) | python (>= 2.3) | 2.5.4-2 python (<< 2.4) | 2.5.4-2 Package's Recommends field is empty. Package's Suggests field is empty. -- gpg key: https://systemausfall.org/schluessel/lars-devel.0.asc
--- libapache2-mod-python.postrm.orig 2009-09-18 14:45:08.000000000 +0200 +++ libapache2-mod-python.postrm 2009-09-18 14:40:59.000000000 +0200 @@ -3,7 +3,8 @@ set -e if [ "$1" = "remove" -o "$1" = "purge" ]; then - a2dismod python + # module deactivation may fail, if the package was "removed" before and then later "purged" + a2dismod python || true fi # mod_python.load renamed to python.load in 3.3.1-3