summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-18 08:22:34 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-18 08:22:34 +0000
commit2ae556414725d946b9d8f52c7ef7201dfd20e7b4 (patch)
tree5b2387653c4979bd67cd76f2e616d33f1eb3fade /bin/ebuild.sh
parent2f62e2e4429817e5bfa21742fecf6357f21981b3 (diff)
downloadportage-2ae556414725d946b9d8f52c7ef7201dfd20e7b4.tar.gz
portage-2ae556414725d946b9d8f52c7ef7201dfd20e7b4.tar.bz2
portage-2ae556414725d946b9d8f52c7ef7201dfd20e7b4.zip
Only enable the PORTAGE_IUSE check during build time phases
since that's the only time it's valid for now. (trunk r8951) svn path=/main/branches/2.1.2/; revision=8952
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index e88f73442..27355a339 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -138,7 +138,12 @@ useq() {
fi
# Make sure we have this USE flag in IUSE
- if [[ ${EBUILD_PHASE} != depend ]] && [[ -n ${PORTAGE_IUSE} ]] ; then
+ if [[ -n ${PORTAGE_IUSE} ]] && \
+ [[ -n ${EBUILD_PHASE} ]] && \
+ ! hasq ${EBUILD_PHASE} config depend info prerm postrm postinst && \
+ [[ ${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}" || \
eqawarn "QA Notice: USE Flag '${u}' not" \
"in IUSE for ${CATEGORY}/${PF}"