[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Updating to a certain version

HI all,

I have made some progress with the code I got from Elena.

Now I do a query for updates on my product IU that goes like:

IQueryResult<IInstallableUnit> matches = queryable.query(QueryUtil.createIUQuery("de.eiswind.mango.client.core.mango", new VersionRange(
Version.createOSGi(major, minor, micro), true, Version.createOSGi(major, minor, micro + 1), false)), new NullProgressMonitor());
return matches;

where I can find all the updates for my matching server version. However when I add this to the plan and perform an update, the depending bundles are not updated at all, it seems like only the product gets the new version, the bundles (that all have a new qualifier, too) are not touched at all. I guess I did get something wrong there, but I guessed if I update the product IU that would be all I need.

Some log output:

!SESSION 2010-05-23 12:56:47.194 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:56:49.323
!MESSAGE Starting Buchmanager core bundle version 1.6.2 201005231220

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:02.252
!MESSAGE Found IU with version 1.6.2.201005231237

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:02.252
!MESSAGE Installed IU has version 1.6.2.201005231220


!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:02.254
!MESSAGE  Updating this IU

!ENTRY unknown 0 0 2010-05-23 12:57:05.293
!MESSAGE OK

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:05.294
!MESSAGE Return code 0
!SESSION 2010-05-23 12:57:08.193 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.core.resources 2 10035 2010-05-23 12:57:10.203
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:10.334
!MESSAGE Starting Buchmanager core bundle version 1.6.2 201005231220

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:16.204
!MESSAGE Found IU with version 1.6.2.201005231237

!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:16.205
!MESSAGE Installed IU has version 1.6.2.201005231237


!ENTRY de.eiswind.mango.client.core 1 0 2010-05-23 12:57:16.206
!MESSAGE Nothing to update

As you can see the core bundle still has the same version as before the update.

Any hints on this for me ?

Regards Thomas
--
http://www.buchmanager.com
http://thomaskratz.blogspot.com
http://twitter.com/thomas_kratz