[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] Update eagerness

+1 for stability (vs. overeagerness to update anything that's not in the provplan )
Helmut

-----Original Message-----
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Hallgren
Sent: Monday, March 08, 2010 9:27 AM
To: P2 developer discussions
Subject: Re: [p2-dev] Update eagerness

I feared that that was the case. I reopened https://bugs.eclipse.org/bugs/show_bug.cgi?id=259537. I think we need to discuss the ramifications of that fix.

- thomas


On 03/08/2010 08:47 AM, Daniel Le Berre wrote:
> Hi Thomas,
>
> The latest objective function that ships in p2 targets stability:
> if favors what is already installed to novelty.
>
> So if the currently installed packages do satisfy the requirements, the features won't be updated.
> See bug 259537 for details.
>
> 	Daniel
>
> Le 8 mars 2010 à 08:25, Thomas Hallgren a écrit :
>
>    
>> Hi,
>> I have a problem that I'm uncertain how to interpret. I might be a bug in p2, or it might be me who misinterprets what's expected of the p2 resolver.
>>
>> I have a feature A with a dependency to a bundle B. The dependency is expressed with a range [1.0.0,1.1.0). In my repository I first have:
>>
>> A version 1.0.0
>> B version 1.0.0
>>
>> p2 installs it correctly into my runtime. At some point in time, my repository is changed to contain:
>>
>> A version 1.0.1
>> B version 1.0.1
>>
>> The dependency from A 1.0.1 to B is left unchanged, i.e. the range is still [1.0.0,1.1.0). Now I ask p2 to update my runtime from this repository. I end up with:
>>
>> A version 1.0.1
>> B version 1.0.0
>>
>> Looking only at this resolution, it is correct. The range permits A 1.0.1 to use B 1.0.0. What confuses me is that p2 finds a later version of B that is satisfied by the requirement but it chooses not to install it. Is that the way it's supposed to work?
>>
>> - thomas
>>
>> _______________________________________________
>> 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
>    


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