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 {
71
71
private final List <String > badLibNotified = new ArrayList <>();
72
72
73
73
public LibrariesIndexer (File preferencesFolder ) {
74
- indexFile = new File (preferencesFolder , "library_index .json" );
74
+ indexFile = new File (preferencesFolder , "library_index_test .json" );
75
75
stagingFolder = new File (new File (preferencesFolder , "staging" ), "libraries" );
76
76
}
77
77
@@ -113,6 +113,11 @@ private void parseIndex(File file) throws IOException {
113
113
} finally {
114
114
IOUtils .closeQuietly (indexIn );
115
115
}
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);
116
121
}
117
122
118
123
public void setLibrariesFolders (List <UserLibraryFolder > folders ) {
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ public LibraryInstaller(Platform platform) {
58
58
}
59
59
60
60
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 );
62
63
63
64
DownloadableContributionsDownloader downloader = new DownloadableContributionsDownloader (BaseNoGui .librariesIndexer .getStagingFolder ());
64
65
// Step 1: Download index
Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ static public void initPackages() throws Exception {
501
501
try {
502
502
librariesIndexer .parseIndex ();
503
503
} catch (JsonProcessingException e ) {
504
+ e .printStackTrace ();
504
505
File librariesIndexFile = librariesIndexer .getIndexFile ();
505
506
FileUtils .deleteIfExists (librariesIndexFile );
506
507
}
You can’t perform that action at this time.
0 commit comments