On Mon, 2023-01-16 at 17:28 -0400, Stefano Rivera wrote:
> Hi Johannes (2021.09.03_09:09:02_-0400)
> > we currently carry Debian mirror URLs in many different packages. It
> > would be great if there could be one package that shipped a machine
> > readable list of the currently correct mirror URLs for each distro.
> 
> I've put some thought into this bug (and similar ones) over the years.
> 
> I like the idea of distro-info & distro-info-data taking on more
> responsibility, but it probably means we need to redesign the data
> schema. I'm thinking YAML/toml data.
> 
> That in turn means rewriting the distro-info libraries (at least to
> provide a new API for the new data).
> 
> I'd be tempted to write the canonical implementation in rust and have
> bindings in Perl/Python/C. But we could also have completely separate
> implementations as we do right now.
> 
> So, basically, from my PoV, the reason this bug has languished is
> because these are big changes and I haven't felt the urge to start on
> them. If somebody were to propose a data model, I'd be happy to review
> it and discuss next steps.

I can only say +1 for that. I am tempted to use distro-info as another
good real world use case to write some Rust. YAML or toml would be the
fitting data storage format.

-- 
Benjamin Drung
Debian & Ubuntu Developer

Reply via email to