kernel-2.eclass: Support EAPI 6 when applying user patches.
authorMike Pagano <mpagano@gentoo.org>
Mon, 28 Nov 2016 23:54:55 +0000 (18:54 -0500)
committerMike Pagano <mpagano@gentoo.org>
Mon, 28 Nov 2016 23:54:55 +0000 (18:54 -0500)
eclass/kernel-2.eclass

index c1719409ad89f43304d8a228ee27ce9b93367999..3f5fb3b0863d6a5eb7c811502a780d538385cabc 100644 (file)
@@ -1260,8 +1260,12 @@ kernel-2_src_unpack() {
        # we run misc `make` functions below
        [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake
 
-       debug-print "Doing epatch_user"
-       epatch_user
+       debug-print "Applying any user patches"
+       # apply any user patches
+    case ${EAPI:-0} in
+        0|1|2|3|4|5) epatch_user ;;
+        6) eapply_user ;;
+    esac
 
        debug-print "Doing unpack_set_extraversion"