commit:     d87e38fc828f96056f78b17b89963362c9245182
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 23 16:08:09 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 23 16:09:26 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d87e38fc

[QA] kernel-2.eclass: Revert "use experimental in global scope"

Revert the global 'use' call fix as it causes build failures for users.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=566600

 eclass/kernel-2.eclass | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index c622323..1a508f1 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -160,9 +160,15 @@ handle_genpatches() {
                if [[ "${i}" == "experimental" && -z ${K_EXP_GENPATCHES_PULL} 
&& -z ${K_EXP_GENPATCHES_NOUSE} ]] ; then
                        use_cond_start="experimental? ( "
                        use_cond_end=" )"
+
+                       if use experimental ; then
+                               UNIPATCH_LIST_GENPATCHES+=" 
${DISTDIR}/${tarball}"
+                               debug-print "genpatches tarball: $tarball"
+                       fi
+               else
+                       UNIPATCH_LIST_GENPATCHES+=" ${DISTDIR}/${tarball}"
+                       debug-print "genpatches tarball: $tarball"
                fi
-               UNIPATCH_LIST_GENPATCHES+=" ${DISTDIR}/${tarball}"
-               debug-print "genpatches tarball: $tarball"
                GENPATCHES_URI+=" 
${use_cond_start}mirror://gentoo/${tarball}${use_cond_end}"
        done
 }

Reply via email to