Skip to content

Package resolving: Don't fail on fuzzy versions

Administrator requested to merge fix/1344-resolver-fuzzy-versions into master

Created by: ollieparanoid

When parsing the depends of entries in the APKINDEX file, we ignore all operators (<, =, >). (This is enough for our use case, was we only do the dependency resolving to check which packages need to be built and apk does the dependency resolving again before installing anything).

We did not ignore the ~ character for fuzzy version compares, this is fixed with this commit.

How to test

Run this command before and after applying the PR. This is what happens without the PR:

$ pmbootstrap chroot --add=ocaml-camlp4
...
ERROR: Could not find package 'ocaml-runtime~4.06' in any aports folder or APKINDEX.
...

Fixes #1344 (closed).

Merge request reports

Loading