Fix useq() so that it won't generate a bogus IUSE QA Notice
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Dec 2007 20:55:48 +0000 (20:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Dec 2007 20:55:48 +0000 (20:55 -0000)
if called during the "depend" phase with a flag that uses
IUSE defaults.

svn path=/main/trunk/; revision=8805

bin/ebuild.sh

index 2f015d3a696860d75f765e278dd152ff2bc5f139..f4de63b15620edf258588cea69302f63716f1a3f 100755 (executable)
@@ -139,6 +139,8 @@ useq() {
 
        # Make sure we have this USE flag in IUSE
        if ! hasq "${u}" ${IUSE} ${E_IUSE} && \
+               ! hasq "+${u}" ${IUSE} ${E_IUSE} && \
+               ! hasq "-${u}" ${IUSE} ${E_IUSE} && \
                ! hasq "${u}" ${PORTAGE_ARCHLIST} selinux && \
                [[ ${u} != arch_* ]] && \
                [[ ${u} != elibc_* ]] && \