Don't cache REQUIRED_USE for EAPIs 1-3 which don't support it.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Aug 2010 02:25:15 +0000 (19:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Aug 2010 02:25:15 +0000 (19:25 -0700)
bin/ebuild.sh

index 4d117f65ed4caf954b10902ff952d61040b5efce..014229446f8523aac4cba43fa70b9a24f1242bf7 100755 (executable)
@@ -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}"