Skip to content

Commit f6bccab

Browse files
committed
propose updated library only if architecture compatible
1 parent a86176d commit f6bccab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/cc/arduino/contributions/libraries/filters/UpdatableLibraryPredicate.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public boolean test(ContributedLibrary contributedLibrary) {
5454
}
5555
List<ContributedLibrary> libraries = BaseNoGui.librariesIndexer.getIndex().find(libraryName);
5656
return libraries.stream()
57-
.filter(library -> versionComparator.greaterThan(library.getParsedVersion(), installed.getParsedVersion()))
57+
.filter(library -> versionComparator.greaterThan(library.getParsedVersion(), installed.getParsedVersion())
58+
&& library.getArchitectures().containsAll(installed.getArchitectures()))
5859
.count() > 0;
5960
}
6061
}

0 commit comments

Comments
 (0)