mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-27 07:06:33 +08:00
windows provisioning: automatically choose the right hash algorithm
...based on the length of the given hash.
Additionally use -ine for string comparison, which explicitly does
case-insensitive comparison. That is what the function needs, previously
it was done implicitly by -ne.
And remove MD5, it's not used anywhere.
Pick-to: 6.10 6.8 6.5
Change-Id: Ib4303737e5e1d743dd0be1a8f829be9a0db2bc04
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
(cherry picked from commit e5e813ef90)
This commit is contained in:
@@ -17,9 +17,9 @@ $install_location = "c:\Utils\$prog"
|
||||
|
||||
$tmp_location = "c:\users\qt\downloads"
|
||||
Download $cached_url $cached_url "$tmp_location\$pkg"
|
||||
Verify-Checksum "$tmp_location\$pkg" $sha1 sha1
|
||||
Verify-Checksum "$tmp_location\$pkg" $sha1
|
||||
Download $dep_cached_url $dep_cached_url "$tmp_location\$dep_pkg"
|
||||
Verify-Checksum "$tmp_location\$dep_pkg" $dep_sha1 sha1
|
||||
Verify-Checksum "$tmp_location\$dep_pkg" $dep_sha1
|
||||
|
||||
Extract-7Zip "$tmp_location\$pkg" $install_location
|
||||
Extract-7Zip "$tmp_location\$dep_pkg" $install_location
|
||||
|
||||
Reference in New Issue
Block a user