Check-in [c86d4fcb08]
Overview
Comment:Updated download program to support old versions of bash
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c86d4fcb089f18c71691a700ce8bb5a7b1a7ca38
User & Date: rkeene on 2016-04-13 15:32:50
Other Links: manifest | tags
Context
2016-04-13
15:57
Updated to wait for the remote host to come up before doing remote builds check-in: 999692e78c user: rkeene tags: trunk
15:32
Updated download program to support old versions of bash check-in: c86d4fcb08 user: rkeene tags: trunk
2016-04-08
16:03
Updated to latest config.guess/config.sub from autoconf (includes musl fixes) check-in: 05ffe94d89 user: rkeene tags: trunk
Changes

Modified common/helpers/download from [37e596df70] to [d546c4b48d].

    42     42   		;;
    43     43   esac
    44     44   
    45     45   function downloadFile() {
    46     46   	local file urls
    47     47   	local downloadProgramArgs
    48     48   	local url
    49         -	local finalURL
           49  +	local authoritativeURL
    50     50   
    51     51   	file="$1"
    52     52   	shift
    53     53   
    54     54   	urls=("$@")
    55     55   
    56         -	finalURL="${urls[-1]}"
           56  +	authoritativeURL="${urls[@]: -1}"
    57     57   
    58     58   	case "${downloadProgram}" in
    59     59   		curl)
    60         -			downloadProgramArgs=(--header "X-Cache-URL: ${finalURL}" --location --insecure --fail --output "${file}")
           60  +			downloadProgramArgs=(--header "X-Cache-URL: ${authoritativeURL}" --location --insecure --fail --output "${file}")
    61     61   			;;
    62     62   		wget)
    63         -			downloadProgramArgs=(--header="X-Cache-URL: ${finalURL}" --no-check-certificate --output-document="${file}")
           63  +			downloadProgramArgs=(--header="X-Cache-URL: ${authoritativeURL}" --no-check-certificate --output-document="${file}")
    64     64   			;;
    65     65   	esac
    66     66   
    67     67   	for url in "${urls[@]}" __fail__; do
    68     68   		rm -f "${file}"
    69     69   
    70     70   		if [ "${url}" = '__fail__' ]; then