mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19: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);
|
onProgress(progress);
|
||||||
String checksum = contribution.getChecksum();
|
String checksum = contribution.getChecksum();
|
||||||
String algo = checksum.split(":")[0];
|
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."));
|
throw new Exception(_("CRC doesn't match. File is corrupted."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user