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) {
871871 for (LibraryIndex libraryIndex : libraryIndices1 ) {
872872 Collection <Library > libraries = libraryIndex .getLatestLibraries (category );
873873 for (Library library : libraries ) {
874+ Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
875+ if ((previousVersion != null ) && (previousVersion != library )) {
876+ previousVersion .remove (new NullProgressMonitor ());
877+ }
874878 if (!library .isInstalled ()) {
875- Library previousVersion = libraryIndex .getInstalledLibrary (library .getName ());
876- if (previousVersion != null ) {
877- previousVersion .remove (new NullProgressMonitor ());
878- }
879879 library .install (new NullProgressMonitor ());
880880 }
881881 }
You can’t perform that action at this time.
0 commit comments