From 478f906be06d60cc7ff50446dbceb76028b4018e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 9 Feb 2008 09:19:44 +0000 Subject: [PATCH] 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 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2