Fix archive yymm directory

In case there is a "patchlevel" suffix.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2017-07-17 12:19:43 -07:00
parent 3e47aa1c3a
commit 46c3e5e3d4

View File

@ -1469,6 +1469,7 @@ CT_Mirrors()
local base yymm local base yymm
base="${version%%-*}" base="${version%%-*}"
yymm="${version##*-??}" yymm="${version##*-??}"
yymm="${yymm%%-*}"
echo "https://releases.linaro.org/components/toolchain/${project}-linaro/${version}" echo "https://releases.linaro.org/components/toolchain/${project}-linaro/${version}"
echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro/${base}" echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro/${base}"
echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro" echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro"