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

svn path=/main/branches/2.1.2/; revision=8806

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_* ]] && \