Merge pull request #5444 from kevans91/freebsd-platform-tag

Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, an…
This commit is contained in:
Martino Facchin 2017-01-20 17:49:27 +01:00 committed by GitHub
commit 44c0c7300e
1 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,14 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
}
}
if (osName.contains("FreeBSD")) {
if (osArch.contains("arm")) {
return host.matches("arm.*-freebsd[0-9]*");
} else {
return host.matches(osArch + "-freebsd[0-9]*");
}
}
return false;
}
}