Enable use() qa checks via PORTAGE_IUSE for all ebuild phases and for binary
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 21:14:27 +0000 (21:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 21:14:27 +0000 (21:14 -0000)
packages since it should work fine now.

svn path=/main/trunk/; revision=13570

bin/ebuild.sh

index 02587d9cbf48c011403d2ec38357333a7164d782..65154143c8b8984070054de46e403d4a98b4408f 100755 (executable)
@@ -142,12 +142,7 @@ useq() {
        fi
 
        # Make sure we have this USE flag in IUSE
-       if [[ -n ${PORTAGE_IUSE} ]] && \
-               [[ -n ${EBUILD_PHASE} ]] && \
-               ! hasq ${EBUILD_PHASE} config depend info prerm postrm postinst && \
-               [[ ${EMERGE_FROM} != binary ]] ; then
-               # TODO: Implement PORTAGE_IUSE for binary packages. Currently,
-               # it is only valid for build time phases.
+       if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then
                [[ $u =~ $PORTAGE_IUSE ]] || \
                        eqawarn "QA Notice: USE Flag '${u}' not" \
                                "in IUSE for ${CATEGORY}/${PF}"