anitya icon indicating copy to clipboard operation
anitya copied to clipboard

Use https://ftpmirror.gnu.org/ for GNU backend

Open Justinzobel opened this issue 3 months ago • 7 comments

Image

Justinzobel avatar Sep 10 '25 03:09 Justinzobel

This needs change in https://github.com/fedora-infra/anitya/blob/master/anitya/lib/backends/gnu.py

Zlopez avatar Sep 10 '25 08:09 Zlopez

Is there a way we can do a test, I want to make sure everything from ftp.gnu.org is available correctly on ftpmirror.gnu.org

Justinzobel avatar Sep 12 '25 08:09 Justinzobel

Only way that I can think of is to use API to retrieve all the packages that have the gnu backend (I'm not sure if that is possible right now) and then do a curl call for each of them and check what it returns.

Zlopez avatar Sep 12 '25 08:09 Zlopez

Only way that I can think of is to use API to retrieve all the packages that have the gnu backend (I'm not sure if that is possible right now) and then do a curl call for each of them and check what it returns.

Thanks. If you can give me a quick curl call to get all the URLs, I can do the test and make sure they exit 0 or something.

Justinzobel avatar Sep 12 '25 08:09 Justinzobel

Only way that I can think of is to use API to retrieve all the packages that have the gnu backend (I'm not sure if that is possible right now) and then do a curl call for each of them and check what it returns.

Thanks. If you can give me a quick curl call to get all the URLs, I can do the test and make sure they exit 0 or something.

Hm, looking at the API there isn't currently any way to retrieve projects with specific backend. But I wonder why you need to check them, if ftp.gnu.org doesn't work anymore the change need to be done in code anyway.

Zlopez avatar Sep 12 '25 08:09 Zlopez

OK I'll make a PR.

Justinzobel avatar Sep 12 '25 11:09 Justinzobel

Don't close the issue till the PR is merged.

Zlopez avatar Sep 15 '25 12:09 Zlopez