diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-05-02 22:14:44 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-05-02 22:14:44 +0000 |
commit | 2341257996e5fd477b83a65ccbe79b0d4a5fcf8e (patch) | |
tree | 945dd17b674f3d28d2e2f63fe76ba7f8797f9ce8 | |
parent | fa4f21600d8de125d88e66b8e632c5e0656f6c47 (diff) | |
download | portage-2341257996e5fd477b83a65ccbe79b0d4a5fcf8e.tar.gz portage-2341257996e5fd477b83a65ccbe79b0d4a5fcf8e.tar.bz2 portage-2341257996e5fd477b83a65ccbe79b0d4a5fcf8e.zip |
Skip useq() IUSE QA Notices during the "depend" phase because lots of
ebuilds/eclasses have stuff in global scope that really belongs somewhere
like pkg_setup or src_configure. Thanks to Arfrever for reporting.
svn path=/main/trunk/; revision=13597
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 65154143c..9d49ae2a4 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -142,7 +142,11 @@ useq() { fi # Make sure we have this USE flag in IUSE - if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then + # Skip this during the "depend" phase because lots of ebuilds/eclasses + # have stuff in global scope that really belongs somewhere like pkg_setup + # or src_configure. + if [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE && \ + $EBUILD_PHASE != depend ]] ; then [[ $u =~ $PORTAGE_IUSE ]] || \ eqawarn "QA Notice: USE Flag '${u}' not" \ "in IUSE for ${CATEGORY}/${PF}" |