From 119524d9807e8c573e16ff25369080df98f3aa74 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 9 Jun 2007 23:06:19 +0000 Subject: For bug #148702, use the * token to trigger wildcard expansion of IUSE. This adds flexibility and prevents flags from being enabled unexpectedly. svn path=/main/trunk/; revision=6784 --- bin/ebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index fcfbe5430..164b2a0df 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1512,6 +1512,11 @@ if [ "${EBUILD_PHASE}" != "depend" ]; then done export IUSE=${iuse_temp} unset iuse_temp + # unset USE_EXPAND variables that contain only the special "*" token + for x in ${USE_EXPAND} ; do + [ "${!x}" == "*" ] && unset ${x} + done + unset x # Lock the dbkey variables after the global phase declare -r DEPEND RDEPEND SLOT SRC_URI RESTRICT HOMEPAGE LICENSE DESCRIPTION declare -r KEYWORDS INHERITED IUSE PDEPEND PROVIDE -- cgit v1.2.3-1-g7c22