libc/eglibc: fix downloading of localedef addon
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Jan 03 17:10:09 2014 +0100 (2014-01-03)
changeset 3270dff359adf15c
parent 3269 6bf3336283c2
child 3271 c65dc9b98841
libc/eglibc: fix downloading of localedef addon

For the versions of eglibc where the ports addon is not external (ie,
all versions after, and including 2.17), we would fail to download the
localedef addon, since the test did not care about the addon we were
about to download, only whether the ports addon was external or not.

Fix that by skipping the ports addon only if that's the addon we're
trying to download.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/build/libc/eglibc.sh
     1.1 --- a/scripts/build/libc/eglibc.sh	Fri Jan 03 10:57:48 2014 +0100
     1.2 +++ b/scripts/build/libc/eglibc.sh	Fri Jan 03 17:10:09 2014 +0100
     1.3 @@ -42,9 +42,9 @@
     1.4              nptl)   continue;;
     1.5          esac
     1.6  
     1.7 -        case "${CT_LIBC_GLIBC_PORTS_EXTERNAL}" in
     1.8 -            y)   ;;
     1.9 -            *)   continue;;
    1.10 +        case "${addon}:${CT_LIBC_GLIBC_PORTS_EXTERNAL}" in
    1.11 +            ports:y)    ;;
    1.12 +            ports:*)    continue;;
    1.13          esac
    1.14  
    1.15          if ! CT_GetSVN "eglibc-${addon}-${CT_LIBC_VERSION}" \