1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

Finish strict repo priority support

- add flag to bindings
- support flag/ruletype in testcases
- support strict repo prio problems in solution generation
- implement automatic disabling of strict repo rules due to install jobs
- add a testcase
This commit is contained in:
Michael Schroeder
2021-10-15 11:03:12 +02:00
parent aa7dcd923b
commit e79734abf6
7 changed files with 153 additions and 51 deletions

View File

@@ -0,0 +1,22 @@
repo system 0 empty
repo available 0 testtags <inline>
#>=Pkg: A 2 1 noarch
repo available 1 testtags <inline>
#>=Pkg: A 1 1 noarch
#>=Req: B
system i686 rpm system
solverflags strictrepopriority
job install name A
result transaction,problems <inline>
#>problem 30c1639e info nothing provides B needed by A-1-1.noarch
#>problem 30c1639e solution 23f73f5b deljob install name A
#>problem 30c1639e solution 5dd1416b allow A-2-1.noarch@available
nextjob
solverflags strictrepopriority
job install pkg A-2-1.noarch@available
result transaction,problems <inline>
#>install A-2-1.noarch@available