Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 33579cf

Browse files
author
Peter Souter
committed
Catch issue if someone on 10.10 tries too old Java
See https://bugs.openjdk.java.net/browse/JDK-8027686 for full details, bug was fixed in u71.
1 parent 90d41a9 commit 33579cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

manifests/init.pp

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
$jdk_dir = "/Library/Java/JavaVirtualMachines/jdk1.7.0_${update_version}.jdk"
1616
$sec_dir = "${jdk_dir}/Contents/Home/jre/lib/security"
1717

18+
if ((versioncmp($::macosx_productversion_major, '10.10') >= 0) and
19+
versioncmp($update_version, '71') < 0)
20+
{
21+
fail('Yosemite Requires Java 7 with a patch level >= 71 (Bug JDK-8027686)')
22+
}
23+
1824
package {
1925
"jre-7u${update_version}.dmg":
2026
ensure => present,

0 commit comments

Comments
 (0)