From 48f5b7eae5a9e8bca89958a36b0c8204b2659f59 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 9 Jun 2007 23:09:15 +0000 Subject: For bug #148702, use the * token to trigger wildcard expansion of IUSE. This adds flexibility and prevents flags from being enabled unexpectedly. (trunk r6784) svn path=/main/branches/2.1.2/; revision=6785 --- bin/ebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 5b9abd7a6..029d46a2f 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1585,6 +1585,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