diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-18 08:21:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-18 08:21:37 +0000 |
commit | b8c06f1f9b0a3e456b89d18380274b34e6e243ad (patch) | |
tree | d1b3e5b880123119929645cc005d06a3d84af234 | |
parent | 2af5c01beb46ad750ce01094806bd376fcd9a36d (diff) | |
download | portage-b8c06f1f9b0a3e456b89d18380274b34e6e243ad.tar.gz portage-b8c06f1f9b0a3e456b89d18380274b34e6e243ad.tar.bz2 portage-b8c06f1f9b0a3e456b89d18380274b34e6e243ad.zip |
Only enable the PORTAGE_IUSE check during build time phases
since that's the only time it's valid for now.
svn path=/main/trunk/; revision=8951
-rwxr-xr-x | bin/ebuild.sh | 7 |
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}" |