mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +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
2 changed files with 4 additions and 3 deletions
|
@ -570,8 +570,9 @@ repo
|
||||||
|
|
||||||
subrepo
|
subrepo
|
||||||
Check the version in this subrepo. This field is optional.
|
Check the version in this subrepo. This field is optional.
|
||||||
When ommited all subrepos are queried and first entry
|
When ommited all subrepos are queried.
|
||||||
(not the highest version) is returned.
|
|
||||||
|
This source supports :ref:`list options`.
|
||||||
|
|
||||||
Check Anitya
|
Check Anitya
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
|
@ -26,4 +26,4 @@ async def get_version(name, conf, *, cache, **kwargs):
|
||||||
repo=repo, subrepo=subrepo)
|
repo=repo, subrepo=subrepo)
|
||||||
|
|
||||||
versions = [pkg['version'] for pkg in pkgs]
|
versions = [pkg['version'] for pkg in pkgs]
|
||||||
return versions[0]
|
return versions
|
||||||
|
|
Loading…
Add table
Reference in a new issue