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:
parent
f4674abee6
commit
1ed51f83f1
|
@ -98,7 +98,7 @@ def parse_next_block(args, path, lines, start):
|
||||||
for value in values:
|
for value in values:
|
||||||
if value.startswith("!"):
|
if value.startswith("!"):
|
||||||
continue
|
continue
|
||||||
for operator in [">", "=", "<"]:
|
for operator in [">", "=", "<", "~"]:
|
||||||
if operator in value:
|
if operator in value:
|
||||||
value = value.split(operator)[0]
|
value = value.split(operator)[0]
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue