fix the provided option for non-soname "provides"

this fixes #165
This commit is contained in:
DDoSolitary 2020-10-23 03:35:11 +08:00
parent 30055a9dcb
commit 6815b035a1
No known key found for this signature in database
GPG Key ID: 90A79E1B71BC0CB1
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ async def get_version(name, conf, *, cache, **kwargs):
r = [r for r in data['results'] if r['repo'] != 'testing'][0]
if provided:
provides = dict(x.split('=', 1) for x in r['provides'])
provides = dict(x.split('=', 1) for x in r['provides'] if '=' in x)
version = provides.get(provided, None)
if strip_release:
version = version.split('-', 1)[0]