diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-09 23:09:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-09 23:09:15 +0000 |
commit | 48f5b7eae5a9e8bca89958a36b0c8204b2659f59 (patch) | |
tree | ac9cdd0f43e3c0f92f2488c58f4ed1d99f4c36b0 /bin | |
parent | e16e16a6e561e59328d74eee6eb857c924c62f20 (diff) | |
download | portage-48f5b7eae5a9e8bca89958a36b0c8204b2659f59.tar.gz portage-48f5b7eae5a9e8bca89958a36b0c8204b2659f59.tar.bz2 portage-48f5b7eae5a9e8bca89958a36b0c8204b2659f59.zip |
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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |