]> git.ipfire.org Git - thirdparty/libsolv.git/commit
policy.c: Fix solver_prune_to_highest_prio_per_name 221/head
authorEric Yu <eric.yu@ni.com>
Tue, 22 Aug 2017 17:18:38 +0000 (12:18 -0500)
committerEric Yu <eric.yu@ni.com>
Tue, 22 Aug 2017 17:45:52 +0000 (12:45 -0500)
commitbae459de2834e30977f464ee1be3a650c11a38a9
treee9df0f5d4d37f83f296988fe24c89bf8fc2d6f14
parenta39c6a04a45585997994874a3a2e2bdcb840c92d
policy.c: Fix solver_prune_to_highest_prio_per_name

- Fixed logic so that all packages with the same name are pushed to the queue
  of packages to be pruned instead of just the first package with that name.
- This fixes a bug where the best version of recommended and suggested packages
  were not being returned.
- Added tests to check that this does fix the problem with recommended and
  suggested packages mentioned above.
src/policy.c
test/testcases/recommendations/recommended_conflicts.t [new file with mode: 0644]
test/testcases/recommendations/recommended_multirepo.t [new file with mode: 0644]
test/testcases/recommendations/recommended_oldversion.t [new file with mode: 0644]
test/testcases/recommendations/recommended_targeted.t [new file with mode: 0644]
test/testcases/recommendations/recommended_version.t [new file with mode: 0644]
test/testcases/recommendations/suggested_conflicts.t [new file with mode: 0644]
test/testcases/recommendations/suggested_multirepo.t [new file with mode: 0644]
test/testcases/recommendations/suggested_oldversion.t [new file with mode: 0644]
test/testcases/recommendations/suggested_targeted.t [new file with mode: 0644]
test/testcases/recommendations/suggested_version.t [new file with mode: 0644]