Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/arduino/Arduino.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Bertorello <m.bertorello@arduino.cc>2019-07-24 17:19:02 +0300
committerCristian Maglie <c.maglie@arduino.cc>2019-08-20 18:06:36 +0300
commit76852465d28d0190f51e8693a250be172154d59f (patch)
tree13f38f6bb30a4caa38cf0832b603179a1fa8bfc9
parentdf5a52407e775f53f5f0e34940e536d13812691f (diff)
Add the copy the sig to the destination file when the skip verification is true
-rw-r--r--arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java1
1 files changed, 1 insertions, 0 deletions
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;