mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Merge pull request #2947 from Lauszus/MultipleLibraries
Allow library manager to install multiple libraries at once.
This commit is contained in:
commit
7032fcf037
@ -368,7 +368,8 @@ public class Base {
|
|||||||
indexer.setLibrariesFolders(BaseNoGui.getLibrariesPath());
|
indexer.setLibrariesFolders(BaseNoGui.getLibrariesPath());
|
||||||
installer.updateIndex();
|
installer.updateIndex();
|
||||||
|
|
||||||
String[] libraryToInstallParts = parser.getLibraryToInstall().split(":");
|
for (String library : parser.getLibraryToInstall().split(",")) {
|
||||||
|
String[] libraryToInstallParts = library.split(":");
|
||||||
|
|
||||||
ContributedLibrary selected=null;
|
ContributedLibrary selected=null;
|
||||||
if (libraryToInstallParts.length == 2) {
|
if (libraryToInstallParts.length == 2) {
|
||||||
@ -391,6 +392,7 @@ public class Base {
|
|||||||
} else {
|
} else {
|
||||||
installer.install(selected, installed);
|
installer.install(selected, installed);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user