kernel/linux: add alternate download locations

Some longterm versions are not in the usual directory.
Account for these new locations.

Get rid of the mirror location, now that the main kernel site is
(almost) back to normal operations.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-12-12 00:01:54 +01:00
parent 697c55b797
commit 9b92f56f2f

View File

@ -63,10 +63,10 @@ do_kernel_get() {
3.*) rel_dir=v3.x;;
esac
korg_base="http://ftp.kernel.org/pub/linux/kernel/${rel_dir}"
mirror_base="http://ftp.free.fr/mirrors/ftp.kernel.org//linux/kernel/${rel_dir}"
CT_GetFile "linux-${CT_KERNEL_VERSION}" \
"${korg_base}" "${korg_base}/longterm/v${k_ver}" \
"${mirror_base}" "${mirror_base}/longterm/v${k_ver}"
CT_GetFile "linux-${CT_KERNEL_VERSION}" \
"${korg_base}" \
"${korg_base}/longterm/v${k_ver}" \
"${korg_base}/longterm
fi
}