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

Detect when more up to date version installed and do not re-install #48

Open
petems opened this issue Dec 4, 2014 · 6 comments
Open

Comments

@petems
Copy link
Member

petems commented Dec 4, 2014

Error: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.FVhord/Java 7 Update 21.pkg -target /' returned 1: installer: Error - A higher version of the JRE is already installed on this system

Error: /Stage[main]/Java/Package[jre-7u21.dmg]/ensure: change from absent to present failed: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.FVhord/Java 7 Update 21.pkg -target /' returned 1: installer: Error - A higher version of the JRE is already installed on this system
  • We do not want to not install java all over again when it's already installed
  • We do not want to install a lower patch number version of Java if a greater patch is already there (or if we do, there should be a force flag or something?)
@dgoodlad
Copy link
Contributor

dgoodlad commented Dec 5, 2014

Could you help us out and figure out how to detect the current patchlevel?

@petems
Copy link
Member Author

petems commented Dec 5, 2014

Yep! Got a basic spike idea here:

https://github.com/petems/puppet-java/tree/dont_update_when_java_version_higher

Sorry, I forgot I posted this without a full summary, I meant to say what the issue was and my plan to fix it :)

@petems petems mentioned this issue Dec 5, 2014
@MikeMcQuaid
Copy link
Contributor

@petems Is this closeable?

@petems
Copy link
Member Author

petems commented Mar 9, 2015

@MikeMcQuaid Not quite yet, but I can probably just extend the work you did in #54 to get it fixed 👍

@MikeMcQuaid
Copy link
Contributor

@petems Sounds great 🤘

@petems
Copy link
Member Author

petems commented Mar 9, 2015

@MikeMcQuaid #55 will help with this, can I get a merge?

With the eventual goal of switching up to allow users to choose between Java 7 and 8! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants