summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2010-01-22 13:23:44 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2010-01-22 13:23:44 +0000
commita338ee1f849b30dc7d6f1f07128c4e58ae3ab703 (patch)
tree96a33694200bbcae66803b3ece2d42e107342a20 /eclass/php-common-r1.eclass
parentAdd initial ebuild for dev-python/python-daemon, thanks to plaes (bug 289496). (diff)
downloadgentoo-2-a338ee1f849b30dc7d6f1f07128c4e58ae3ab703.tar.gz
gentoo-2-a338ee1f849b30dc7d6f1f07128c4e58ae3ab703.tar.bz2
gentoo-2-a338ee1f849b30dc7d6f1f07128c4e58ae3ab703.zip
Die out if eselect postgresql does not contain valid profile.
Diffstat (limited to 'eclass/php-common-r1.eclass')
-rw-r--r--eclass/php-common-r1.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/php-common-r1.eclass b/eclass/php-common-r1.eclass
index 90e30288e954..1fd6da2c8d5d 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.16 2008/05/29 14:45:38 hoffie Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.17 2010/01/22 13:23:44 scarabeus Exp $
# Based on robbat2's work on the php4 sapi eclass
# Based on stuart's work on the php5 sapi eclass
@@ -221,6 +221,10 @@ php_check_pgsql() {
fi
else
local pgsql_ver=$(eselect postgresql show)
+ if [[ ${pgsql_ver} == "(none)" ]]; then
+ eerror "QA: Please select your PostgreSQL version \"eselect postgresql list\""
+ die "Can't determine PgSQL."
+ fi
if ! built_with_use "=dev-db/postgresql-base-${pgsql_ver}*" threads ; then
eerror
eerror "You must build =dev-db/postgresql-base-${pgsql_ver} with USE=threads"