1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Fixed error in cmd-line lib installer

This commit is contained in:
Cristian Maglie 2018-01-22 15:03:48 +01:00
parent fee5848a02
commit 8d27171b74

View File

@ -359,7 +359,7 @@ public class Base {
}
Optional<ContributedLibrary> mayInstalled = indexer.getIndex().getInstalled(libraryToInstallParts[0]);
if (mayInstalled.isPresent() && mayInstalled.get().isIDEBuiltIn()) {
if (mayInstalled.isPresent() && selected.isIDEBuiltIn()) {
libraryInstaller.remove(mayInstalled.get(), progressListener);
} else {
libraryInstaller.install(selected, mayInstalled, progressListener);