Add hy_goal_favor and hy_goal_disfavor#937
Add hy_goal_favor and hy_goal_disfavor#937jlebon wants to merge 2 commits intorpm-software-management:dnf-4-masterfrom
hy_goal_favor and hy_goal_disfavor#937Conversation
|
Any thoughts on this? |
|
@jlebon Please could you provide information for what purpose (user-case) you want to use solver_favor? |
|
@jlebon Based also on user-case we would like to have some test, to guarantee that it does what is expected. |
|
|
Minimal wrappers around `SOLVER_FAVOR` and `SOLVER_DISFAVOR`. We'd like to make use of these in rpm-ostree.
This is the same thing we already have for e.g. `DnfReldepList`. These helpers are really useful to keep C client code clean and make it harder to leak resources.
|
OK, now added tests for this and added
Yes, this will allow us to have more influence over libsolv's decisions. Without this, it's impossible to make libsolv "prefer" a package but still letting it not be part of a possible solution. For more details on the rpm-ostree use case, see coreos/rpm-ostree#2059. The goal there is for "locked" packages to be given preference when updating the lockfile, but still allow solutions which require picking packages outside the lockfile. |
|
LGTM! |
|
📌 Commit 83b1d62 has been approved by |
Minimal wrappers around `SOLVER_FAVOR` and `SOLVER_DISFAVOR`. We'd like to make use of these in rpm-ostree. Closes: #937 Approved by: j-mracek
This is the same thing we already have for e.g. `DnfReldepList`. These helpers are really useful to keep C client code clean and make it harder to leak resources. Closes: #937 Approved by: j-mracek
|
💔 Test failed - status-papr |
|
Hmm, hard to tell what failed. I see: The last few runs of Ahhh, I think it might be related to this: |
|
Lets try it again |
|
@rh-atomic-bot retry |
Minimal wrappers around `SOLVER_FAVOR` and `SOLVER_DISFAVOR`. We'd like to make use of these in rpm-ostree. Closes: #937 Approved by: j-mracek
This is the same thing we already have for e.g. `DnfReldepList`. These helpers are really useful to keep C client code clean and make it harder to leak resources. Closes: #937 Approved by: j-mracek
|
💔 Test failed - status-papr |
|
Sorry guys - misconfiguration in jenkins job. Should by fixed now. |
|
@rh-atomic-bot retry |
This is the same thing we already have for e.g. `DnfReldepList`. These helpers are really useful to keep C client code clean and make it harder to leak resources. Closes: #937 Approved by: j-mracek
|
☀️ Test successful - status-papr |
The problem was introduced by rpm-software-management#937 The PR added a new pkg with a require into the updates test repo therefore their count increased.
The problem was introduced by #937 The PR added a new pkg with a require into the updates test repo therefore their count increased.
Minimal wrappers around
SOLVER_FAVORandSOLVER_DISFAVOR. We'd liketo make use of these in rpm-ostree.