[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] Update eagerness
|
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
>