mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-24 15:42:46 +00:00
repology: return a list of versions instead
to support list options. Returning the first isn't usually desirable.
This commit is contained in:
parent
024849c242
commit
b4689369c8
@ -570,8 +570,9 @@ repo
|
||||
|
||||
subrepo
|
||||
Check the version in this subrepo. This field is optional.
|
||||
When ommited all subrepos are queried and first entry
|
||||
(not the highest version) is returned.
|
||||
When ommited all subrepos are queried.
|
||||
|
||||
This source supports :ref:`list options`.
|
||||
|
||||
Check Anitya
|
||||
~~~~~~~~~~~~
|
||||
|
@ -26,4 +26,4 @@ async def get_version(name, conf, *, cache, **kwargs):
|
||||
repo=repo, subrepo=subrepo)
|
||||
|
||||
versions = [pkg['version'] for pkg in pkgs]
|
||||
return versions[0]
|
||||
return versions
|
||||
|
Loading…
Reference in New Issue
Block a user