summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-09 23:06:19 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-09 23:06:19 +0000
commit119524d9807e8c573e16ff25369080df98f3aa74 (patch)
treeb826724a515d90f73979e5aefcd39abe5a120d98 /bin
parentWhen an update is discarded due to confmem, record it's mtime in the contents... (diff)
downloadportage-idfetch-119524d9807e8c573e16ff25369080df98f3aa74.tar.gz
portage-idfetch-119524d9807e8c573e16ff25369080df98f3aa74.tar.bz2
portage-idfetch-119524d9807e8c573e16ff25369080df98f3aa74.zip
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index fcfbe543..164b2a0d 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