Modify to support new location of 2.6 kernels on kernel.org and mirrors
authorMike Pagano <mpagano@gentoo.org>
Tue, 8 Nov 2011 01:05:22 +0000 (01:05 +0000)
committerMike Pagano <mpagano@gentoo.org>
Tue, 8 Nov 2011 01:05:22 +0000 (01:05 +0000)
eclass/ChangeLog
eclass/kernel-2.eclass

index 4829e445665323a70261fc69fe893b94e73332fc..05deaee66efd79ed19b9799d56797e3cdf74b909 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.2 2011/11/04 13:08:23 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.3 2011/11/08 01:05:22 mpagano Exp $
+
+  08 Nov 2011; Michael Pagano <mpagano@gentoo.org> kernel-2.eclass:
+  Modify to support new location of 2.6 kernels on kernel.org and mirrors
 
   04 Nov 2011; Naohiro Aota <naota@gentoo.org> mysql.eclass, user.eclass:
   Change possible mis-used ${action} to ${db}
index cc351824958509a844877a3c8cc7472a860b52e8..61c1b466379dacff478f060c6509387d2ca2a22e 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.261 2011/10/24 23:58:11 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.262 2011/11/08 01:05:22 mpagano Exp $
 
 # Description: kernel.eclass rewrite for a clean base regarding the 2.6
 #              series of kernel with back-compatibility for 2.4
@@ -232,9 +232,15 @@ detect_version() {
        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}.x"
+               if [[ ${KV_MAJOR} -ge 3 ]]; then
+                       KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.x"
+               else
+                       KERNEL_BASE_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}"
+               fi
+
                [[ -n "${K_LONGTERM}" ]] &&
-                       KERNEL_BASE_URI="${KERNEL_BASE_URI}/longterm/v${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
+                       KERNEL_BASE_URI="${KERNEL_BASE_URI}/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}"