p2 director cannot update previously installed product [message #120648] |
Tue, 04 November 2008 05:40 |
Eclipse User |
|
|
|
Hi group,
I sucessfully installed a RCP based product using p2 director and can also
sucessfully update it from the software updates UI. My goal is to have a
standalone application update my product without any UI interaction in the
actual product, so I can deny the product users write access to the
installation directory. The standalone update will be run by a superuser
prior to launching the product with normal user rights.
Using p2 director as standlone install/update application, I get some
weird dependency errors when I want to update a product I previously
installed with director. All of the errors seem to point to a versioning
conflict between my installed versions and the updated versions of my
plugins and features that have changed:
!MESSAGE Cannot complete the install because some dependencies are not
satisfiable
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-04 11:28:53.185
!MESSAGE Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/id.of.my.product/[0.5.0,0.5.0]] and
Match[requiredCapability:
org.eclipse.equinox.p2.iu/id.of.my.product/[0.4.0,0.4.0]] can be satisfied.
These are the first lines of th error message, they repeat for all feature
and plugin IUs that had their version changed for the update.
My questions now are:
Am I doing this right? Should p2 director be able to update an existing
installation at all?
Why can I update from the update UI within the product? The repository I
am using is the same in both cases.
Is my problem related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218055 ? As far as I
understand, this bug also describes update problems in the UI, which I
don't have.
I managed to reproduce the problem with a 3.4.1 RCP developer installation
and Kai Tödter's maildemo update (http://toedter.com/blog/?p=27). After
following the instructions in his blog, I tried to update from the UI,
which worked, then started from scratch and tried to update with p2
director, getting the same errors as above.
Kai's demo is using a plugin-based product while mine is feature-based.
Thanks in advance for any advice on this,
Thorsten
|
|
|
Powered by
FUDForum. Page generated in 0.07699 seconds