upgrade from 3.4.2 to 3.5.1: maintain repositories [message #488827] |
Wed, 30 September 2009 12:06 |
Tom Hofmann 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
.settings
org.eclipse.equinox.p2.artifact.repository.prefs
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--
|
|
|
|
Powered by
FUDForum. Page generated in 0.04216 seconds