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

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

bin/ebuild.sh

index 8601863a03da9440287d14f569ab677f5ce6d72e..6752df9ae93dfd10a569ca0061e255e904c1505b 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