Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2f2c2b4

Browse files
author
Mattia Bertorello
committed
Add the copy the sig to the destination file when the skip verification is true
1 parent 9d2a327 commit 2f2c2b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ public boolean checkSignature(MultiStepProgress progress, URL signatureUrl, Prog
215215
download(signatureUrl, packageIndexSignatureTemp, progress, statusText, progressListener, true);
216216

217217
if (skipVerification) {
218+
Files.move(packageIndexSignatureTemp.toPath(), packageIndexSignature.toPath(), StandardCopyOption.REPLACE_EXISTING);
218219
log.info("Allowing insecure packages because allow_insecure_packages is set to true in preferences.txt" +
219220
" but the signature was download");
220221
return true;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /