summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-10 19:25:15 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-10 19:25:15 -0700
commitde7237f75c498785dfa9c669ea39868edcdf389b (patch)
tree85101e6f60924f1845a119de7246510153ae48da /bin/ebuild.sh
parent24ba28265398606d7772780646fb531e66ad359c (diff)
downloadportage-de7237f75c498785dfa9c669ea39868edcdf389b.tar.gz
portage-de7237f75c498785dfa9c669ea39868edcdf389b.tar.bz2
portage-de7237f75c498785dfa9c669ea39868edcdf389b.zip
Don't cache REQUIRED_USE for EAPIs 1-3 which don't support it.
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 4d117f65e..014229446 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -2164,7 +2164,11 @@ ebuild_main() {
#the extra $(echo) commands remove newlines
[ -n "${EAPI}" ] || EAPI=0
- local eapi=$EAPI
+ case "$EAPI" in
+ 0|1|2|3)
+ unset REQUIRED_USE
+ ;;
+ esac
if [ -n "${dbkey}" ] ; then
> "${dbkey}"