Fix for 2.6.X KERNEL_BASE_URI, thanks to lxnay.
authorMike Pagano <mpagano@gentoo.org>
Mon, 15 Aug 2011 21:38:33 +0000 (21:38 +0000)
committerMike Pagano <mpagano@gentoo.org>
Mon, 15 Aug 2011 21:38:33 +0000 (21:38 +0000)
eclass/kernel-2.eclass

index 72885e9042141c7af5d8db1d8916e800876867e9..2b74d21566e4656ccd31e60e459d6945f6f6362e 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.256 2011/08/11 14:09:56 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.257 2011/08/15 21:38:33 mpagano Exp $
 
 # Description: kernel.eclass rewrite for a clean base regarding the 2.6
 #              series of kernel with back-compatibility for 2.4
@@ -230,12 +230,14 @@ detect_version() {
                [[ -n "${K_LONGTERM}" ]] &&
                        KERNEL_BASE_URI="${KERNEL_BASE_URI}/longterm/v${KV_MAJOR}.${KV_PATCH_ARR}"
        else
-               KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.0"
-               #KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}"
+               #KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.0"
+               KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}"
                [[ -n "${K_LONGTERM}" ]] &&
                        KERNEL_BASE_URI="${KERNEL_BASE_URI}/longterm/v${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
        fi
 
+       debug-print "KERNEL_BASE_URI is ${KERNEL_BASE_URI}"
+
        if [[ ${#OKV_ARRAY[@]} -ge 3 ]] && [[ ${KV_MAJOR} -ge 3 ]]; then
                # handle vanilla-sources-3.x.y correctly
                if [[ ${PN/-*} == "vanilla" && ${KV_PATCH} -gt 0 ]]; then