From 76852465d28d0190f51e8693a250be172154d59f Mon Sep 17 00:00:00 2001 From: Mattia Bertorello Date: Wed, 24 Jul 2019 16:19:02 +0200 Subject: [PATCH] Add the copy the sig to the destination file when the skip verification is true --- .../contributions/DownloadableContributionsDownloader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java index 6503e8d4f..ac5677212 100644 --- a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java +++ b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java @@ -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;