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

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

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
		;;
esac

function downloadFile() {
	local file urls
	local downloadProgramArgs
	local url
	local finalURL

	file="$1"
	shift

	urls=("$@")

	finalURL="${urls[-1]}"

	case "${downloadProgram}" in
		curl)
			downloadProgramArgs=(--header "X-Cache-URL: ${finalURL}" --location --insecure --fail --output "${file}")
			;;
		wget)
			downloadProgramArgs=(--header="X-Cache-URL: ${finalURL}" --no-check-certificate --output-document="${file}")
			;;
	esac

	for url in "${urls[@]}" __fail__; do
		rm -f "${file}"

		if [ "${url}" = '__fail__' ]; then







|






|



|


|







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
		;;
esac

function downloadFile() {
	local file urls
	local downloadProgramArgs
	local url
	local authoritativeURL

	file="$1"
	shift

	urls=("$@")

	authoritativeURL="${urls[@]: -1}"

	case "${downloadProgram}" in
		curl)
			downloadProgramArgs=(--header "X-Cache-URL: ${authoritativeURL}" --location --insecure --fail --output "${file}")
			;;
		wget)
			downloadProgramArgs=(--header="X-Cache-URL: ${authoritativeURL}" --no-check-certificate --output-document="${file}")
			;;
	esac

	for url in "${urls[@]}" __fail__; do
		rm -f "${file}"

		if [ "${url}" = '__fail__' ]; then