diff --git a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java index a0b811ba1..7e06fc727 100644 --- a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java +++ b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java @@ -170,6 +170,8 @@ public class DownloadableContributionsDownloader { downloadedFilesAccumulator.remove(packageIndex.getName()); } } else { + // Move the package index to the destination when the signature is not necessary + Files.move(packageIndexTemp.toPath(), packageIndex.toPath(), StandardCopyOption.REPLACE_EXISTING); log.info("The domain is not selected to verify the signature. packageIndex: {}", packageIndexUrl); } } catch (Exception e) {