From: Zac Medico Date: Sat, 9 Feb 2008 09:19:44 +0000 (-0000) Subject: For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead X-Git-Tag: v2.1.4.4~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=478f906be06d60cc7ff50446dbceb76028b4018e;p=portage.git For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead 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 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 37a9a6ed2..61f6e18fe 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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