Remove fuzzy versions for dependencies

Fixes #1344
This commit is contained in:
Luca Weiss 2018-10-09 17:11:44 +02:00 committed by Oliver Smith
parent 946417d314
commit 6495fca971
1 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,11 @@ def providers(args, package, arch=None, must_exist=True, indexes=None):
arch = arch or args.arch_native
indexes = pmb.helpers.repo.apkindex_files(args, arch)
for operator in [">", ">=", "=", "<=", "<", "~"]:
if operator in package:
package = package.split(operator)[0]
break
ret = collections.OrderedDict()
for path in indexes:
# Skip indexes not providing the package