Skip to content

Commit

Permalink
Add the copy the sig to the destination file when the skip verificati…
Browse files Browse the repository at this point in the history
…on is true
  • Loading branch information
Mattia Bertorello authored and cmaglie committed Aug 20, 2019
1 parent df5a524 commit 7685246
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public boolean checkSignature(MultiStepProgress progress, URL signatureUrl, Prog
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;
Expand Down

0 comments on commit 7685246

Please sign in to comment.