rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 91 forks source link

RFE: Support rsync protocol for baseurl and mirrors #252

Closed Conan-Kudo closed 2 years ago

Conan-Kudo commented 2 years ago

In Mageia, the URPMI package manager supports fetching content via the rsync protocol, with both direct URLs and mirror lists. Additionally, the Metalink format supports offering mirrors using rsync protocol, and librepo has a stub implementation for it now:

https://github.com/rpm-software-management/librepo/blob/57509c387dc55c66986711757cbcf56f6eef442e/librepo/downloader.c#L757-L763

It would be great if librepo properly supported fetching repositories with the rsync protocol, just like it does for ftp, http, https, and file protocols. This would bring it to parity with URPMI's mirror handling implementation and make it better than pretty much all other alternatives.

j-mracek commented 2 years ago

Thank you very much for the report. It will be interesting to extend librepo capabilities with rsynk and to have a parity with other tools. On the other side, there is no strong user case and we have other priorities (DNF5). I can only promise that we will be happy to review a community patch implementing it. I am closing it.