Skip to main content

[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 Wed, Feb 16, 2011 at 4:35 PM, Brian de Alwis <briandealwis@xxxxxxxxx> wrote:
I'm sure I can build a p2 query to figure this out, given enough time.  But I wondered if there's an p2 cli app that already does this, or that I can use to execute the query?  (p2grep?)


Thanx to Chris, I was able to run the p2 queries ... but I wasn't able to make it go up the containment graph, only to find out what something depends on.  ex:


osgi> provlquery http://download.eclipse.org/e4/updates/0.11-I-builds "select( x | x.id == 'org.eclipse.e4.core.contexts').traverse(parent | parent.requirements.collect(rc | select(iu | iu  ~= rc)).flatten().latest())" true
javax.annotation 1.0.0.v20101115-0725
javax.inject 1.0.0.v20091030
org.eclipse.e4.core.contexts 0.9.0.v20101125-1630
org.eclipse.e4.core.di 0.9.0.v20101202-1530
org.eclipse.osgi 3.7.0.v20110207

PW


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

Back to the top