solver: new package selection logic (which is not yet used)
* basic code for a backtracking, forward checking dependency satisfier * works better when there are tricky dependencies to solve (when can't just upgrade everything to most preferred versions) * the new code always evaluates all of 'world' constraints (old code just does incremental updates based on heuristics) * is probably somewhat slower than old code (probably unnoticeable difference in most cases) * makes easier to write support for provides and repository pinning * test applet and a bunch of test cases added which uses the new code * from the old feature set install_if is not yet implemented
Showing
- .gitignore 3 additions, 2 deletions.gitignore
- Makefile 4 additions, 0 deletionsMakefile
- src/Makefile 10 additions, 3 deletionssrc/Makefile
- src/apk_package.h 1 addition, 0 deletionssrc/apk_package.h
- src/apk_solver.h 33 additions, 0 deletionssrc/apk_solver.h
- src/solver.c 563 additions, 0 deletionssrc/solver.c
- src/test.c 163 additions, 0 deletionssrc/test.c
- src/topology.c 56 additions, 0 deletionssrc/topology.c
- test/Makefile 10 additions, 4 deletionstest/Makefile
- test/basic.installed 13 additions, 0 deletionstest/basic.installed
- test/basic.repo 26 additions, 0 deletionstest/basic.repo
- test/basic1.expect 2 additions, 0 deletionstest/basic1.expect
- test/basic1.test 1 addition, 0 deletionstest/basic1.test
- test/basic2.expect 0 additions, 0 deletionstest/basic2.expect
- test/basic2.test 1 addition, 0 deletionstest/basic2.test
- test/basic3.expect 2 additions, 0 deletionstest/basic3.expect
- test/basic3.test 1 addition, 0 deletionstest/basic3.test
- test/basic4.expect 1 addition, 0 deletionstest/basic4.expect
- test/basic4.test 1 addition, 0 deletionstest/basic4.test
- test/complicated1.expect 4 additions, 0 deletionstest/complicated1.expect
src/apk_solver.h
0 → 100644
src/solver.c
0 → 100644
src/test.c
0 → 100644
src/topology.c
0 → 100644
test/basic.installed
0 → 100644
test/basic.repo
0 → 100644
test/basic1.expect
0 → 100644
test/basic1.test
0 → 100644
test/basic2.expect
0 → 100644
test/basic2.test
0 → 100644
test/basic3.expect
0 → 100644
test/basic3.test
0 → 100644
test/basic4.expect
0 → 100644
test/basic4.test
0 → 100644
test/complicated1.expect
0 → 100644
Please register or sign in to comment