1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Add the copy the sig to the destination file when the skip verification is true

This commit is contained in:
Mattia Bertorello 2019-07-24 16:19:02 +02:00 committed by Cristian Maglie
parent df5a52407e
commit 76852465d2

View File

@ -215,6 +215,7 @@ public class DownloadableContributionsDownloader {
download(signatureUrl, packageIndexSignatureTemp, progress, statusText, progressListener, true);
if (skipVerification) {
Files.move(packageIndexSignatureTemp.toPath(), packageIndexSignature.toPath(), StandardCopyOption.REPLACE_EXISTING);
log.info("Allowing insecure packages because allow_insecure_packages is set to true in preferences.txt" +
" but the signature was download");
return true;