Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » upgrade from 3.4.2 to 3.5.1: maintain repositories
upgrade from 3.4.2 to 3.5.1: maintain repositories [message #488827] Wed, 30 September 2009 12:06 Go to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030207090909040003000102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

How can I update a product from Eclipse Platform 3.4.2 to 3.5.1 and
update the configured update sites (repositories) at the same time?

On 3.4.2, we use the following root file structure to configure the
repositories:

configuration
.settings
org.eclipse.equinox.p2.artifact.repository.prefs
org.eclipse.equinox.p2.metadata.repository.prefs

This does no longer work on 3.5(.1), but I found that we can configure
repositories using Touchpoint Instructions
< http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions> in
p2.inf, using the addRepository action.

The problem comes when updating from the previous version to the
current. Since 3.4.2 seems to not understand the addRepository action,
the update fails, leaving the installation dead and unstartable (see bug
290890 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=290890>).

I can imagine the following approaches, any advice is welcome:

* use an external update process (similar to the p2 installer) based
on 3.5.x
* defer running the touchpoint instructions until after the restart
of the product after the update (how?)
* update the repositories via API calls using a one-time startup
action run from an updated feature


Thanks, tom

--------------030207090909040003000102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
How can I update a product from Eclipse Platform 3.4.2 to 3.5.1 and
update the configured update sites (repositories) at the same time? <br>
<br>
On 3.4.2, we use the following root file structure to configure the
repositories:<br>
<pre><tt>configuration
&nbsp;&nbsp;&nbsp; .settings
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; org.eclipse.equinox.p2.artifact.repository.prefs
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; org.eclipse.equinox.p2.metadata.repository.prefs</tt></pre >
This does no longer work on 3.5(.1), but I found that we can configure
repositories using <a
href=" http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions">Touchpoint
Instructions</a> in <tt>p2.inf</tt>, using the <tt>addRepository </tt>action.<br>
<br>
The problem comes when updating from the previous version to the
current. Since 3.4.2 seems to not understand the addRepository action,
the update fails, leaving the installation dead and unstartable (see <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=290890">bug 290890</a>).<br>
<br>
I can imagine the following approaches, any advice is welcome:<br>
<ul>
<li>use an external update process (similar to the p2 installer)
based on 3.5.x</li>
<li>defer running the touchpoint instructions until after the restart
of the product after the update (how?)</li>
<li>update the repositories via API calls using a one-time startup
action run from an updated feature</li>
</ul>
<br>
Thanks, tom<br>
</body>
</html>

--------------030207090909040003000102--
Re: upgrade from 3.4.2 to 3.5.1: maintain repositories [message #489124 is a reply to message #488827] Thu, 01 October 2009 14:49 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
For future reference: I solved the update problem by having an IStartup
runnable that manages the repositories using IRepositoryManager APIs.

-tom
Previous Topic:How to share the installed features?
Next Topic:Provisioning the SDK from scratch
Goto Forum:
  


Current Time: Fri Apr 19 14:11:21 GMT 2024

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

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

Back to the top