Check-in [049a34d925]
Overview
SHA1:049a34d92536205efb10f942fc154300f107bcc9
Date: 2016-04-08 14:30:50
User: rkeene
Comment:Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-04-08
14:46
[fbd2f87d32] Updated to allow modules to do pre-build validation of the environment (user: rkeene, tags: trunk)
14:30
[049a34d925] Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL (user: rkeene, tags: trunk)
2016-03-30
16:18
[439e033536] For KitDLL, only add _APP and _USER to auto_path if they can be mounted and then later found (user: rkeene, tags: trunk)
Changes

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

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
	hash="$2"
	hashMethod="$3"

	if [ "${hashMethod}" = 'null' ]; then
		return 0
	fi

	checkHash="$(openssl "${hashMethod}" "${file}" | sed 's@.*= *@@')"

	if [ "${checkHash}" = "${hash}" ]; then
		return 0
	fi

	echo "Hash (${hashMethod}) mismatch: Got: ${checkHash}; Expected: ${hash}" >&2








|







85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
	hash="$2"
	hashMethod="$3"

	if [ "${hashMethod}" = 'null' ]; then
		return 0
	fi

	checkHash="$(openssl dgst "-${hashMethod}" "${file}" | sed 's@.*= *@@')"

	if [ "${checkHash}" = "${hash}" ]; then
		return 0
	fi

	echo "Hash (${hashMethod}) mismatch: Got: ${checkHash}; Expected: ${hash}" >&2