Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Software update fails due to site.xml in the updatesite
Software update fails due to site.xml in the updatesite [message #382244] Wed, 21 January 2009 20:31 Go to next message
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
I am having problems with p2 software update not detecting available
updates from my RCP application. The updates are working fine for an
update site generated with PDE product export wizard, but fail if I am
using an update site generated using buckminster and p2director. The
problem appears to be the presence of a site.xml file in the buckminster
generated site (it is not present in the pde exported version). Manually
removing site.xml fixes the problem.

I am generating a update site following the setup in
http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site and
then extracting the resulting site and running
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator via p2 director
to add the p2 information. If I delete the site.xml file from my update
site then the RCP application will install updates properly.

I've tried to remove the site.template action from the update site's
buckminster.cspec but that results in filenotfound exceptions when running
the export. Is there a way to adjust the cspec to remove the site? If not
I guess I can delete it in the script after I unpack the buckminster
generated site.

Thanks
Rich Scott
Re: Software update fails due to site.xml in the updatesite [message #382727 is a reply to message #382244] Thu, 22 January 2009 15:02 Go to previous message
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
It turns out that the problem I was seeing was not related to the
site.xml. The actual problem was being caused the p2 installer saving
repository locations from previous installs, and using them in addition
the to specified repository.

Rich



Rich Scott wrote:

> I am having problems with p2 software update not detecting available
> updates from my RCP application. The updates are working fine for an
> update site generated with PDE product export wizard, but fail if I am
> using an update site generated using buckminster and p2director. The
> problem appears to be the presence of a site.xml file in the buckminster
> generated site (it is not present in the pde exported version). Manually
> removing site.xml fixes the problem.

> I am generating a update site following the setup in
> http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site and
> then extracting the resulting site and running
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator via p2 director
> to add the p2 information. If I delete the site.xml file from my update
> site then the RCP application will install updates properly.

> I've tried to remove the site.template action from the update site's
> buckminster.cspec but that results in filenotfound exceptions when running
> the export. Is there a way to adjust the cspec to remove the site? If not
> I guess I can delete it in the script after I unpack the buckminster
> generated site.

> Thanks
> Rich Scott
Previous Topic:conflicting requests when resolving components
Next Topic:Including product into a CSPEC
Goto Forum:
  


Current Time: Tue Apr 16 09:37:55 GMT 2024

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

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

Back to the top