openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
517 stars 152 forks source link

Using `focusbest` with `ignorerecommended` installs recommend anyway #539

Closed kontura closed 1 year ago

kontura commented 1 year ago

We decided to try out using focusbest by default.

In our CI we ran into a problematic case:

repo @System 0 testtags <inline>
#>=Pkg: soymilk 1 1 x86_64

repo available 0 testtags <inline>
#>=Pkg: pancake 1 1 x86_64
#>=Req: milk | soymilk
#>=Rec: milk
#>
#>=Pkg: milk 1 1 x86_64
#>
#>=Pkg: soymilk 1 1 x86_64

system x86_64 rpm @System
solverflags ignorerecommended focusbest
job install oneof pancake-1-1.x86_64@available

result transaction,problems <inline>
#>install milk-1-1.x86_64@available
#>install pancake-1-1.x86_64@available

In this testcase milk is installed even though the recommend should be ignored and pancake can use soymilk.

mlschroe commented 1 year ago

Fixed. Thanks for the report!