mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Lib/Board Manager CRC check is now case insensitive. Fixes #2953
This commit is contained in:
parent
dd50e6d349
commit
7d0ffe92b2
@ -67,7 +67,7 @@ public class DownloadableContributionsDownloader {
|
||||
onProgress(progress);
|
||||
String checksum = contribution.getChecksum();
|
||||
String algo = checksum.split(":")[0];
|
||||
if (!FileHash.hash(outputFile, algo).equals(checksum)) {
|
||||
if (!FileHash.hash(outputFile, algo).equalsIgnoreCase(checksum)) {
|
||||
throw new Exception(_("CRC doesn't match. File is corrupted."));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user