summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-09 09:19:44 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-09 09:19:44 +0000
commit478f906be06d60cc7ff50446dbceb76028b4018e (patch)
tree26e1a34f6d2ed97328b05dbd43cc82004164bef1 /bin/ebuild.sh
parent4bb099550ddc4c4f7c4c6aa4e83783854f267311 (diff)
downloadportage-478f906be06d60cc7ff50446dbceb76028b4018e.tar.gz
portage-478f906be06d60cc7ff50446dbceb76028b4018e.tar.bz2
portage-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
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
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