[Pkg-php-commits] [php/debian-sid] Don't leave .start if we are purging

Ondřej Surý ondrej at sury.org
Mon Jan 11 09:03:48 UTC 2010


Fixed .prerm scripts to leave .start file only if we are just removing
the package and not purging.  This should also fix piuparts errors.

Closes: #561739
---
 debian/libapache2-mod-php5.prerm       |    2 +-
 debian/libapache2-mod-php5filter.prerm |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/libapache2-mod-php5.prerm b/debian/libapache2-mod-php5.prerm
index 801e13c..e7865fe 100644
--- a/debian/libapache2-mod-php5.prerm
+++ b/debian/libapache2-mod-php5.prerm
@@ -9,7 +9,7 @@ if [ "$1" != "remove" -a "$1" != "purge" ]; then
 fi
 
 if [ -e /etc/apache2/apache2.conf ]; then
-	if [ -e /etc/apache2/mods-enabled/php5.load ]; then
+	if [ -e /etc/apache2/mods-enabled/php5.load ] && [ "$1" != "purge" ]; then
 	    # set a flag to remember the original state
 	    #  useful when reinstalling the same version.
 	    touch /etc/php5/apache2/.start
diff --git a/debian/libapache2-mod-php5filter.prerm b/debian/libapache2-mod-php5filter.prerm
index 3d0e71a..7d1c1b8 100644
--- a/debian/libapache2-mod-php5filter.prerm
+++ b/debian/libapache2-mod-php5filter.prerm
@@ -9,7 +9,7 @@ if [ "$1" != "remove" -a "$1" != "purge" ]; then
 fi
 
 if [ -e /etc/apache2/apache2.conf ]; then
-	if [ -e /etc/apache2/mods-enabled/php5.load ]; then
+	if [ -e /etc/apache2/mods-enabled/php5.load ] && [ "$1" != "purge" ]; then
 	    # set a flag to remember the original state
 	    #  useful when reinstalling the same version.
 	    touch /etc/php5/apache2filter/.start
-- 
1.6.3.3





More information about the Pkg-php-commits mailing list