Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » p2-repo feature patch / replace
p2-repo feature patch / replace [message #549944] Wed, 28 July 2010 14:20
Jens Nazarenus is currently offline Jens NazarenusFriend
Messages: 1
Registered: July 2010
Junior Member
Hello,
I have a basic question about p2-repositories.
Is there a way to patch and replaces features?
(we are developing an own RCP)

I read the following blog entry by Andrew Niefer:
http://aniefer.blogspot.com/2009/06/patching-features-with-p 2.html

But it's not what I am looking for. I guess.
I have the following situation:

That's the master feature for the different customers plus the core master feature.
After the creation of a product we install all the IUs of
the masterfeature individually.
.
| -- test.masterfeature.core
| | -- test.feature.core.A
| | -- test.feature.core.B
| ` -- test.feature.core.C
|
| -- test.masterfeature.dummy1
| | -- test.feature.dummy1.A
| | -- test.feature.dummy1.B
| ` -- test.feature.core.C
|
` -- test.masterfeature.dummy2
| -- test.feature.dummy2.A
| -- test.feature.dummy2.B
` -- test.feature.core.C

My p2-Repo is created for customer 'dummy1' with this master feature.
Now we can easily update the features named
test.feature.dummy1.A or B. We only "append" content to this p2-repo. Afterwards the version number increases.
The user may now update this feature via
"Help > Check for Updates"

Now the problem:
We create a feature named test.feature.dummy1.C which
should *replace* test.feature.core.C in the p2-repo of dummy1.
Is this possible? I read the article "Patch Features"
by Andrew Niefer, but...
He creates a feature and a patch afterwards.
He referenced the patch inside the original feature. (like: Hey feature you got patched in feature <id>)

This wouldn't work for me, because the patch should
only be available for the customer 'dummy1'.
As you can see 'dummy2' also includes the feature
test.feature.core.C. So the feature should only be patched
for *one* p2-repo.

The most important thing here is:
The user should use "Help > Check for Updates" to
get this feature.

Is there a way to realize it?

Thanks in advance,
Jens

[Updated on: Wed, 28 July 2010 14:21]

Report message to a moderator

Previous Topic:How to customise p2 auto-updater?
Next Topic:p2 Director Headless Install w/ Update Site
Goto Forum:
  


Current Time: Fri Apr 19 22:12:14 GMT 2024

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

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

Back to the top