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

Hi Paul,

Don't you have a misplaced parenthesis? It looks like you're flattening and taking the latest of the requirements, not the IU's.

On 2011-02-17 14:33, Paul Webster wrote:
select( x | x.id == 'org.eclipse.e4.core.contexts').traverse(parent | parent.requirements.collect(rc | select(iu | iu ~= rc)).flatten().latest())

Try this instead:

select( x | x.id == 'org.eclipse.e4.core.contexts').traverse(parent | parent.requirements.collect(rc | select(iu | iu ~= rc))).flatten().latest()

- thomas