summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-04-20 12:15:35 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-04-20 12:15:35 +0000
commite95c8f22b5972944452c3766309c75513d97adbe (patch)
tree2056c8d208deff3061982a14410f6ca99d406c70 /eclass/phpconfutils.eclass
parentMoved setup code to pkg_setup, hopefully fixing bug #130553. (diff)
downloadhistorical-e95c8f22b5972944452c3766309c75513d97adbe.tar.gz
historical-e95c8f22b5972944452c3766309c75513d97adbe.tar.bz2
historical-e95c8f22b5972944452c3766309c75513d97adbe.zip
Don't die on USE=-*, eclass part.
Diffstat (limited to 'eclass/phpconfutils.eclass')
-rw-r--r--eclass/phpconfutils.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/phpconfutils.eclass b/eclass/phpconfutils.eclass
index 3a22b48b0236..a1e9d8997714 100644
--- a/eclass/phpconfutils.eclass
+++ b/eclass/phpconfutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/phpconfutils.eclass,v 1.2 2006/04/18 12:21:14 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/phpconfutils.eclass,v 1.3 2006/04/20 12:15:35 chtekk Exp $
#
# ########################################################################
#
@@ -93,6 +93,7 @@ phpconfutils_require_any() {
shift
local required_flags="$@"
+ local default_flag="$1"
local success="0"
while [[ -n "$1" ]] ; do
@@ -112,13 +113,15 @@ phpconfutils_require_any() {
# If we get here, then none of the required USE flags were enabled
eerror
- eerror "You *must* enable one or more of the following USE flags:"
+ eerror "You should enable one or more of the following USE flags:"
eerror " ${required_flags}"
eerror
eerror "You can do this by enabling these flags in /etc/portage/package.use:"
eerror " =${CATEGORY}/${PN}-${PVR} ${required_flags}"
eerror
- die "Missing USE flags found"
+ eerror "The ${default_flag} USE flag was automatically enabled now."
+ eerror
+ PHPCONFUTILS_AUTO_USE="${PHPCONFUTILS_AUTO_USE} ${default_flag}"
}
# ========================================================================