File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
cc/arduino/contributions/libraries Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public class LibrariesIndexer {
7171 private final List <String > badLibNotified = new ArrayList <>();
7272
7373 public LibrariesIndexer (File preferencesFolder ) {
74- indexFile = new File (preferencesFolder , "library_index .json" );
74+ indexFile = new File (preferencesFolder , "library_index_test .json" );
7575 stagingFolder = new File (new File (preferencesFolder , "staging" ), "libraries" );
7676 }
7777
@@ -113,6 +113,11 @@ private void parseIndex(File file) throws IOException {
113113 } finally {
114114 IOUtils .closeQuietly (indexIn );
115115 }
116+
117+ // ContributedLibrary lib = index.find("ArduinoCloud","1.0.0");
118+ // System.out.println(lib.info());
119+ // System.out.println(index.resolveDependeciesOf(lib));
120+ // System.exit(0);
116121 }
117122
118123 public void setLibrariesFolders (List <UserLibraryFolder > folders ) {
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ public LibraryInstaller(Platform platform) {
5858 }
5959
6060 public synchronized void updateIndex (ProgressListener progressListener ) throws Exception {
61- final MultiStepProgress progress = new MultiStepProgress (3 );
61+ if (true ) return ;
62+ final MultiStepProgress progress = new MultiStepProgress (2 );
6263
6364 DownloadableContributionsDownloader downloader = new DownloadableContributionsDownloader (BaseNoGui .librariesIndexer .getStagingFolder ());
6465 // Step 1: Download index
Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ static public void initPackages() throws Exception {
501501 try {
502502 librariesIndexer .parseIndex ();
503503 } catch (JsonProcessingException e ) {
504+ e .printStackTrace ();
504505 File librariesIndexFile = librariesIndexer .getIndexFile ();
505506 FileUtils .deleteIfExists (librariesIndexFile );
506507 }
You can’t perform that action at this time.
0 commit comments