diff options
author | 2008-02-09 09:19:44 +0000 | |
---|---|---|
committer | 2008-02-09 09:19:44 +0000 | |
commit | 478f906be06d60cc7ff50446dbceb76028b4018e (patch) | |
tree | 26e1a34f6d2ed97328b05dbd43cc82004164bef1 | |
parent | Make qa_source and qa_call save the return value and return it. Thanks (diff) | |
download | portage-multirepo-478f906be06d60cc7ff50446dbceb76028b4018e.tar.gz portage-multirepo-478f906be06d60cc7ff50446dbceb76028b4018e.tar.bz2 portage-multirepo-478f906be06d60cc7ff50446dbceb76028b4018e.zip |
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
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 37a9a6ed..61f6e18f 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 |