File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
io.sloeber.core/src/io/sloeber/core/managers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -871,11 +871,11 @@ public static void installAllLatestLibraries(String category) {
871
871
for (LibraryIndex libraryIndex : libraryIndices1 ) {
872
872
Collection <Library > libraries = libraryIndex .getLatestLibraries (category );
873
873
for (Library library : libraries ) {
874
+ Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
875
+ if ((previousVersion != null ) && (previousVersion != library )) {
876
+ previousVersion .remove (new NullProgressMonitor ());
877
+ }
874
878
if (!library .isInstalled ()) {
875
- Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
876
- if (previousVersion != null ) {
877
- previousVersion .remove (new NullProgressMonitor ());
878
- }
879
879
library .install (new NullProgressMonitor ());
880
880
}
881
881
}
You can’t perform that action at this time.
0 commit comments