summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-01-28 01:35:11 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-01-28 01:35:11 +0000
commitca5286fd2381f76034388ce4eafe13c3fc5b24be (patch)
tree1dd06391a0d67bdc5f76fe468dbf347bf9f04e22 /eclass/php5_1-sapi.eclass
parentMasking rar as it pulls in a binary only x86 package. (diff)
downloadgentoo-2-ca5286fd2381f76034388ce4eafe13c3fc5b24be.tar.gz
gentoo-2-ca5286fd2381f76034388ce4eafe13c3fc5b24be.tar.bz2
gentoo-2-ca5286fd2381f76034388ce4eafe13c3fc5b24be.zip
Fix wrong exitstatus in php-select.
Diffstat (limited to 'eclass/php5_1-sapi.eclass')
-rw-r--r--eclass/php5_1-sapi.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/php5_1-sapi.eclass b/eclass/php5_1-sapi.eclass
index b525cd651811..ca27e2dc8092 100644
--- a/eclass/php5_1-sapi.eclass
+++ b/eclass/php5_1-sapi.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.14 2006/01/23 18:46:49 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php5_1-sapi.eclass,v 1.15 2006/01/28 01:35:11 chtekk Exp $
#
# ########################################################################
#
@@ -622,7 +622,7 @@ php5_1-sapi_pkg_postinst() {
if useq apache ; then
"${ROOT}/usr/sbin/php-select" -t apache1 php5 > /dev/null 2>&1
exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
+ if [[ ${exitStatus} == 2 ]] ; then
php-select apache1 php5
elif [[ ${exitStatus} == 4 ]] ; then
ewarn
@@ -638,7 +638,7 @@ php5_1-sapi_pkg_postinst() {
if useq apache2 ; then
"${ROOT}/usr/sbin/php-select" -t apache2 php5 > /dev/null 2>&1
exitStatus=$?
- if [[ ${exitStatus} == 5 ]] ; then
+ if [[ ${exitStatus} == 2 ]] ; then
php-select apache2 php5
elif [[ ${exitStatus} == 4 ]] ; then
ewarn