Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » IMetadataRepository deleted after update
IMetadataRepository deleted after update [message #1731279] Wed, 04 May 2016 06:53
Alex W is currently offline Alex WFriend
Messages: 5
Registered: January 2013
Junior Member
Hello,

I'm using P2 to support auto-update in my e4 application.
It works almost well.
I realized that sometimes, after an automatic update, my custom update site is removed from the DefaultProfile.profile data in the p2 folder. This implies that at the next check for update, my repo is not checked anymore (I do have a log to display checked repos). The repo is set as the update site of my main feature.

Does anyone have any clue or information on this behavior ?
The complete code for update check is available here : update code on Github

Here are my step :
1. Export the product,
2. Make change, export repository,
3. Run product exported in 1.
4. Check for update, check the log - my custom repo is checked
5. Perform the update, and restart
6. Check for update, my custom repo is non longer checked

I also noticed that the pref file org.eclipse.equinox.p2.metadata.repository in the DefaultProfile.profile folder is changed during this operation. And my custom repo disappears.
The manually added repositories ( using IMetadataRepositoryManager.addRepository(URI) ) are saved in this pref file.

Thank you,

[Updated on: Wed, 04 May 2016 06:54]

Report message to a moderator

Previous Topic:loadRepository and removeRepository in IMetadataRepositoryManager
Next Topic:Status Error while resolving Install Operation
Goto Forum:
  


Current Time: Thu Apr 25 04:59:04 GMT 2024

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

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

Back to the top