Check-in [049a34d925]
Overview
Comment:Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 049a34d92536205efb10f942fc154300f107bcc9
User & Date: rkeene on 2016-04-08 14:30:50
Other Links: manifest | tags
Context
2016-04-08
14:46
Updated to allow modules to do pre-build validation of the environment check-in: fbd2f87d32 user: rkeene tags: trunk
14:30
Updated to use "openssl dgst" instead of just "openssl <hashName>" for compatability with older versions of OpenSSL check-in: 049a34d925 user: rkeene tags: trunk
2016-03-30
16:18
For KitDLL, only add _APP and _USER to auto_path if they can be mounted and then later found check-in: 439e033536 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
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@.*= *@@')"
	checkHash="$(openssl dgst "-${hashMethod}" "${file}" | sed 's@.*= *@@')"

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

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