Skip to content

Commit 0b4c4bb

Browse files
committed
Immediately re-parse library_index.json after updating it
1 parent 34baa40 commit 0b4c4bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public LibraryInstaller(Platform platform) {
5656
}
5757

5858
public synchronized void updateIndex(ProgressListener progressListener) throws Exception {
59-
final MultiStepProgress progress = new MultiStepProgress(2);
59+
final MultiStepProgress progress = new MultiStepProgress(3);
6060

6161
DownloadableContributionsDownloader downloader = new DownloadableContributionsDownloader(BaseNoGui.librariesIndexer.getStagingFolder());
6262
// Step 1: Download index
@@ -79,7 +79,10 @@ public synchronized void updateIndex(ProgressListener progressListener) throws E
7979
if (!tmpFile.renameTo(outputFile))
8080
throw new Exception(tr("An error occurred while updating libraries index!"));
8181

82-
// Step 2: Rescan index
82+
// Step 2: Parse index
83+
BaseNoGui.librariesIndexer.parseIndex();
84+
85+
// Step 3: Rescan index
8386
rescanLibraryIndex(progress, progressListener);
8487
}
8588

0 commit comments

Comments
 (0)