For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Feb 2008 09:19:44 +0000 (09:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Feb 2008 09:19:44 +0000 (09:19 -0000)
of egrep since apparently it's compatible in this case. Thanks to
igli for this. (trunk r9279)

svn path=/main/branches/2.1.2/; revision=9305

bin/ebuild.sh

index 37a9a6ed296de90416b830e38034f024b1a46e50..61f6e18fe44a2a7e5753bbcee89b920cb4ff1ffa 100755 (executable)
@@ -148,7 +148,7 @@ useq() {
                [[ ${EMERGE_FROM} != binary ]] ; then
                # TODO: Implement PORTAGE_IUSE for binary packages. Currently,
                # it is only valid for build time phases.
-               echo "${u}" | egrep -q "${PORTAGE_IUSE}" || \
+               [[ $u =~ $PORTAGE_IUSE ]] || \
                        eqawarn "QA Notice: USE Flag '${u}' not" \
                                "in IUSE for ${CATEGORY}/${PF}"
        fi