lilydjwg / nvchecker

New version checker for software releases
MIT License
439 stars 70 forks source link

repology: add support for subrepo #167

Closed jruzicka-nic closed 4 years ago

jruzicka-nic commented 4 years ago

Without this, querying latest Fedora packages is impossible because they reside in updates subrepo but old release versions are returned. Same thing for openSUSE.

Example config to query Fedora 32 latest packages in updates subrepo:

[somepackage]
source = "repology"
repo = "fedora_32"
subrepo = "updates"
lilydjwg commented 4 years ago

Thanks. Can you add documentation and a test?

jruzicka-nic commented 4 years ago

Sure I can ;) Also it would be best to return latest version when there are multiple subrepos, is version comparison/sorting available in nvchecker? In Fedora packages can be in release subrepo only or in updates repo only so if you really want to know latest Fedora packge you need to query both (that's already hapenning without subrepo option) and select newer (that's not happenning). I think at worst case setuptools provide some version comparison :thinking:

lilydjwg commented 4 years ago

Yes version comparison is available and I've just made the repology source support it.

jruzicka-nic commented 4 years ago

Confirmed - repology fetcher now returns latest version by default and we have extra option of selecting subrepo if needed - thanks for fast response.