mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Lib/Board Manager CRC check is now case insensitive. Fixes #2953
This commit is contained in:
@ -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."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user