[Rpm-ecosystem] Some points about zchunk
Michael Schroeder
mls at suse.de
Wed Jul 11 08:28:50 UTC 2018
On Tue, Jul 10, 2018 at 02:05:26PM +0100, Jonathan Dieter wrote:
> The top-level tool only needs to deal with the uncompressed metadata.
> dnf/libdnf requests the primary metadata from librepo, which downloads
> the zchunk version, passes it to libsolv which decompresses it and
> creates the .solv file usable by the top-level tools.
Yes, so the selection of the flavor to download should be in dnf/libdnf.
> DNF neither knows, nor cares that librepo downloaded the zchunk metadata
> rather than gz.
That's just because libsolv uses the file suffix to autodetect the
compression.
Actually dnf/libdnf sould ask libsolv if it supports the compression
(by calling solv_xfopen_iscompressed()) and not blindly assume that
it will magically work.
Cheers,
Michael.
--
Michael Schroeder mls at suse.de
SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
More information about the Rpm-ecosystem
mailing list