mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Merge pull request #166 from DDoSolitary/patch-archpkg-provided
fix the provided option for unversioned "provides"
This commit is contained in:
commit
c8b0e673ca
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue