summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-09 23:09:15 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-09 23:09:15 +0000
commit48f5b7eae5a9e8bca89958a36b0c8204b2659f59 (patch)
treeac9cdd0f43e3c0f92f2488c58f4ed1d99f4c36b0 /bin/ebuild.sh
parentWhen an update is discarded due to confmem, record it's mtime in the contents... (diff)
downloadportage-multirepo-48f5b7eae5a9e8bca89958a36b0c8204b2659f59.tar.gz
portage-multirepo-48f5b7eae5a9e8bca89958a36b0c8204b2659f59.tar.bz2
portage-multirepo-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/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 5b9abd7a..029d46a2 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