diff options
Diffstat (limited to 'eclass/php-common-r1.eclass')
-rw-r--r-- | eclass/php-common-r1.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/php-common-r1.eclass b/eclass/php-common-r1.eclass index a323163db934..2349bc1ad972 100644 --- a/eclass/php-common-r1.eclass +++ b/eclass/php-common-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.9 2007/03/05 01:50:47 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.10 2007/08/27 11:17:32 jokey Exp $ # ======================================================================== # @@ -228,6 +228,11 @@ php_check_pgsql() { # ======================================================================== php_get_mycnf_charset() { + # nothing todo if no mysql installed + if [[ ! -f "${ROOT}/etc/mysql/my.cnf" ]]; then + echo "empty" + return + fi local sapi="${1}" local section="" local client_charset="" |