anatol / pacoloco

Caching proxy server for Arch Linux pacman
MIT License
216 stars 30 forks source link

Automatically choosing fastest mirror #102

Open pidario opened 6 months ago

pidario commented 6 months ago

Hello there!

I believe that automatically choosing the fastest mirror would be a nice addition to this project, in the same fashion of flexo. I think it uses this endpoint to retrieve all the official mirrors and then ranks them. This way the configuration file could be even simpler: the user could omit entirely the repos section and then pacoloco should probably serve packages from the root path (http://<HOSTNAME>:9129/$repo/os/$arch)

What do you think?

Apologies if this has already been asked, but I couldn't find anything like it.

anatol commented 6 months ago

Yep, I think it is a great feature.

the user could omit entirely the repos

pacoloco implemented to handle multiple different repositories. The automatic sorting works for the default arch repository. Other repositories still need to be configured with repos.

pidario commented 6 months ago

Glad that you agree. Yes, indeed that would work for default repositories only.