Skip to content

Commit 412b6d1

Browse files
author
Mattia Bertorello
committed
Fix download package index from external sources
1 parent 9e38c87 commit 412b6d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ public void downloadIndexAndSignature(MultiStepProgress progress, List<String> d
170170
downloadedFilesAccumulator.remove(packageIndex.getName());
171171
}
172172
} else {
173+
// Move the package index to the destination when the signature is not necessary
174+
Files.move(packageIndexTemp.toPath(), packageIndex.toPath(), StandardCopyOption.REPLACE_EXISTING);
173175
log.info("The domain is not selected to verify the signature. packageIndex: {}", packageIndexUrl);
174176
}
175177
} catch (Exception e) {

0 commit comments

Comments
 (0)