Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Unexpected resolution failure

In the case of the p2 director, doing "-installIU abc" (without specifying a version) is a shortcut for saying install the highest version available of this IU. 

Could you please describe from a user point of view the behaviour you are trying to get for the director app?



On 2011-10-13, at 6:04 AM, Todorova, Katya wrote:

> Thanks for the explanation, Tobias, I checked the bug comments as well (https://bugs.eclipse.org/bugs/show_bug.cgi?id=359902) and it started getting clearer.
> My confusion came from trying to map equinox and p2 resolvers behavior on 0.0.0.
> 
> Back on the technical stuff - I think version range would do for my use case. 
> Do you have any idea how to specify version range in director app? (curious if there is any documentation when p2 handles 0.0.0 as fixed version and when as range?)
> What is the use case(s) of using 0.0.0 as fixed version?
> 
> Implementing my desired behavior outside p2 would mean re-implementing the planner :) I'm not sure I'd like to go in that direction. Just want to play around 
> with what's currently available and try to come up with a decent solution.
> 
> Thanks again,
> Katya
> 
> -----Original Message-----
> From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Oberlies, Tobias
> Sent: jeudi 13 octobre 2011 11:35
> To: P2 developer discussions
> Subject: Re: [p2-dev] Unexpected resolution failure
> 
> Katya Todorova wrote:
>> It seems that 0.0.0 is interpreted as [1.0.1.201109261256,
>> 1.0.1.201109261256] instead of [0.0.0, infinity) and p2 resolver doesn't
>> make an attempt to find a solution containing lower version.
>> Is that the expected behavior?
> 
> 0.0.0 can be a version or a version range. 0.0.0 as version is a fixed version - the latest one available when querying a metadata repo, 0.0.0 as version range is an open version range.
> 
> You need to know what you are specifying (version vs. Version range) to know the semantics.
> 
> Regards
> Tobias
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev



Back to the top