Skip to main content



      Home
Home » Eclipse Projects » P2 » Help with debugging update mechanism
Help with debugging update mechanism [message #1830017] Wed, 15 July 2020 16:59 Go to next message
Eclipse UserFriend
Hello,

I'm trying to figure out, why my feature-based product is not updating to the newer version. The product is installed with setup file which only contains the product itself. The problem is that in the end of the Oomph's "perform setup tasks" operation, it just says that no updates are available.

After some debugging, I discovered that the product sees the new version in the specified p2 update site, but during operation of p2 mechanisms, the choice is made in favor of the old version. I also found out that dependency conflicts are resolved using SAT4j library, which I also tried to debug in order to understand what the problem is. So far, I have discovered that both versions of the product are passed to DependencyHelper (entity of SAT4j library) and that the choice is made in favor of the old one (the coefficient list is returned, where the coefficient of the new version of the product is marked with a minus sign).

Since debugging of the library internal work is quite painstaking work, the question is - is there any mechanisms which can ease troubleshooting (e.g. enabling debug logging which can show dependency conflicts or some place in the code where you can find information about conflicts, etc)?
Re: Help with debugging update mechanism [message #1830075 is a reply to message #1830017] Thu, 16 July 2020 15:34 Go to previous message
Eclipse UserFriend
There's some knowledge about p2 distilled in the p2 FAQ, particularly in the dependency resolution problems section. I don't really know that much about authoring Oomph setups, but ultimately p2 will use older IUs when there are singleton dependencies that cannot be updated for some reason. p2 does have some conflict resolution support, but I'm not sure how/if that is incorporated into Oomph.
Previous Topic:Enable capability during install
Next Topic:Possible to use a dropins folder for an RCP application
Goto Forum:
  


Current Time: Sat Jun 14 00:46:12 EDT 2025

Powered by FUDForum. Page generated in 0.03667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top