|
|
|
Re: Oomph Updater not picking up new versions in composite repository [message #1783552 is a reply to message #1783539] |
Wed, 14 March 2018 06:13 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
I don't generally expect a simple restart of a product to automatically update what's installed simply because the update sites have modified content. Depending on the trigger, BOOTSTRAP, STARTUP, or MANUAL, org.eclipse.oomph.setup.p2.impl.P2TaskImpl.isNeeded(SetupTaskContext) returns different results. For BOOTSTRAP and MANUAL it always return true; of course when creating an installation it will definitely be needed and when manually performing (Help-> Perform Setup Tasks) there generally might be updates; this is why you always see the p2 task listed when doing a manual Perform Setup Tasks... For STARTUP, isNeeded returns true only if the installation profile does not satisfy the requirements of the p2 task. I.e., if something that should be installed isn't already installed or what's already installed isn't within the required version range of some Requirement. The isNeeded method never actually checks the contents of the update sites to see if there is something new/different that could be updated; such an operation would be potentially very long running.
So if you really want to force all your users to update their installation upon restart, you should change at least one of the requirements of the product's p2 task to specifically require the newer version of the IU, i.e., specify a lower bound that will force an update to at least that version.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03501 seconds