[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] CLI tool to execute a p2 query?



On Thu, Feb 17, 2011 at 11:21 AM, Thomas Hallgren <thomas@xxxxxxx> wrote:
On 2011-02-17 17:09, Paul Webster wrote:
Â

So I'm not going to get something like this to work? :

provlpquery this "select(parent | parent.properties['org.eclipse.equinox.p2.type.group'] == true && parent.requirements.exists(rc | everything.select(iu | iu.id == 'org.eclipse.core.e4.contexts' && iu ~= rc)))" true

PW

Yes, that should work.

- thomas


_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev



Thanx for the suggestions, but it returns "No Units found". Here's the same kind of query that would apply to any 3.7 or 3.6 eclipse SDK:


osgi> provlpquery this "select(parent | parent.properties['org.eclipse.equinox.p2.type.group'] == true && parent.requirements.exists(rc | everything.select(iu | iu.id == 'org.eclipse.jface' && iu ~= rc)))" true
No units found


Is the problem that requirements.exists(*) contains a select(*) which returns a collection ... but really you want the select(*).size > 0 ?

In this case I'm trying to match (at least :-) org.eclipse.rcp.feature.group which has "<property name='org.eclipse.equinox.p2.type.group' value='true'/>" and under <requires/>:
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.jface' range='[3.7.0.I20110208-0800,3.7.0.I20110208-0800]'/>


PW

--
Paul Webster
Hi floor. Make me a sammich! - GIR