On Thu, Feb 17, 2011 at 12:28 PM, Thomas Hallgren <[email protected]> wrote:

> On 2011-02-17 17:37, Paul Webster wrote:
>
>>
>> Is the problem that requirements.exists(*) contains a select(*) which
>> returns a collection ... but really you want the select(*).size > 0 ?
>>
>>  select(*).size > 0 would be the same as exists(*) so try that instead of
> the inner select.
>
>
> - thomas
>
> _______________________________________________
> p2-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>



Thanx!  that's it:

osgi> provlpquery this "select(parent |
parent.properties['org.eclipse.equinox.p2.type.group'] == true &&
parent.requirements.exists(rc | everything.exists(iu | iu.id ==
'org.eclipse.jface' && iu ~= rc)))" true
org.eclipse.rcp.feature.group
4.1.0.v20101119-1030-97CAFhLFnSIo7jAFXIU_SOm7YwJz

osgi> provlpquery this "select(parent |
parent.properties['org.eclipse.equinox.p2.type.group'] == true &&
parent.requirements.exists(rc | everything.exists(iu | iu.id ==
'org.eclipse.e4.core.contexts' && iu ~= rc)))" true
org.eclipse.e4.rcp.feature.group
1.0.0.v20101206-1400-7IA37CFTy21UiK6XvIyssAb
org.eclipse.e4.ui.feature.feature.group
0.9.1.v20110121-1000-7B9n7DFPJtAHhyCTPAdkg426CA4


Later,
PW

-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to