This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH setup 00/14] Use libsolv, solve all our problems... (WIP)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]