From: Zac Medico Date: Wed, 6 Feb 2008 08:43:57 +0000 (-0000) Subject: For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead X-Git-Tag: v2.2_pre1~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd8a658710fc50723850f48d88224046c285e79f;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. svn path=/main/trunk/; revision=9279 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 8601863a0..6752df9ae 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