From: Zac Medico Date: Sun, 3 May 2009 20:27:48 +0000 (-0000) Subject: Skip useq() IUSE QA Notices during the "depend" phase because lots of X-Git-Tag: v2.1.6.13~5 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=88e3842a0f87f8780499b8129ea66c5658e00de1;p=portage.git 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. (trunk r13597) svn path=/main/branches/2.1.6/; revision=13603 --- 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}"