1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Simply arch matching

This commit is contained in:
Kyle Evans 2016-12-28 23:37:10 -06:00
parent 481fd94ac6
commit ba42280fba

View File

@ -80,12 +80,10 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
}
if (osName.contains("FreeBSD")) {
if (osArch.contains("amd64")) {
return host.matches("x86_64-freebsd[0-9]*");
} else if (osArch.contains("arm")) {
if (osArch.contains("arm")) {
return host.matches("arm.*-freebsd[0-9]*");
} else {
return host.matches("i386-freebsd[0-9]*");
return host.matches(osArch + "-freebsd[0-9]*");
}
}