Package resolving: Don't fail on fuzzy versions (#1355)

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.
This commit is contained in:
Oliver Smith 2018-03-24 16:29:32 +00:00 committed by GitHub
parent f4674abee6
commit 1ed51f83f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def parse_next_block(args, path, lines, start):
for value in values:
if value.startswith("!"):
continue
for operator in [">", "=", "<"]:
for operator in [">", "=", "<", "~"]:
if operator in value:
value = value.split(operator)[0]
break