[PATCH setup 00/14] Use libsolv, solve all our problems... (WIP)
Ken Brown
kbrown@cornell.edu
Thu Nov 23 20:32:00 GMT 2017
On 11/23/2017 1:10 PM, Jon Turney wrote:
> On 06/09/2017 03:52, Ken Brown wrote:
>> On 9/5/2017 2:40 PM, Achim Gratz wrote:
>>> Jon Turney writes:
>>>> Yeah, I'm not sure if putting the test packages into a separate repo
>>>> which is disabled unless explicitly enabled is the right approach.
>>>>
>>>> (Instead, perhaps it is possible to tell the solver that certain
>>>> repositories are disfavoured)
>>>
>>> At least for zypper, which is based on the same library:
>>>
>>> You can give each repo a priority and it will pick the package from the
>>> one with the highest priority, even if another repo has a higher
>>> version.
>>
>> Yes, that works.
>
> It seems that, when test versions are enabled, a test version is
> preferred over a non-test version with a higher version
>
> I guess this is a consequence of:
>
>> void
>> SolverPool::use_test_packages(bool use_test_packages)
>> {
>> Â // Give repos containing test packages higher priority than normal
>> Â // if wanted, otherwise lower priority.
>> Â SolvRepo::priority_t p = use_test_packages ? SolvRepo::priorityHigh
>> : SolvRepo::priorityLow;
>
> I wonder if we just want to give test repos priorityNormal when they are
> wanted?
Yes, that sounds right to me.
Ken
More information about the Cygwin-apps
mailing list