[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] multiple providers of the same capability
- From: Igor Fedorenko <ifedorenko@xxxxxxxxxxxx>
- Date: Thu, 09 Apr 2009 12:59:58 -0400
- Delivered-to: email@example.com
- User-agent: Thunderbird 22.214.171.124 (X11/20090318)
This is a followup to my previous question about installing fragment
bundles. I am trying to prototype what Pascal has suggested -- add
required org.eclipse.swt osgi.fragment capability (or any fragment,
really). Unfortunately, this breaks if I have multiple applicable
fragments in my repositories.
Haigermoser, Helmut wrote:
Ciao Igor :)
That's work by design, if you require something and three providers are
providing it then we consider all three provided packages equal. No
matter which one we pick you'll always get the right one.
If you try to get a specific providers' package then the best way is to
express a different dependency, or a more strict version range such that
it can only be true by fulfilled by your provider...
(Pascal, plz. correct me if I'm wrong...)
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On
Behalf Of Igor Fedorenko
Sent: Thursday, April 09, 2009 4:12 PM
To: P2 developer discussions
Subject: [p2-dev] multiple providers of the same capability
I have an installable unit that requires capability which has multiple
providers. Is P2 expected to resolve and install all available providers
when I tell it to install my IU?
This does not seem to be the case with P2 from 3.5M6. I tried a (split)
java.package and osgi.fragment and in both cases P2 appears to pick one
arbitrary provider. Example how to express such dependencies will be