On Tue, 2018-04-17 at 09:08 +0200, Michal Novotny wrote:
On Mon, Apr 16, 2018 at 2:47 PM, Jonathan Dieter <jdieter(a)gmail.com>
> It's been a number of weeks since my last update, so I thought I'd
> everyone know where things are at.
> I've spent most of these last few weeks reworking zchunk's API to
> it easier to use and more in line with what other compression tools
> use, and I'm mostly happy with it now. Writing a simple zchunk
> can be done in a few lines of code, while reading one is also
> I've also added zchunk support to createrepo_c (see
), but I haven't yet created
> pull request because I'm not sure if my current implementation is
> best method. My current effort only zchunks primary.xml,
> and other.xml and doesn't change the sort order.
Once it is in createrepo_c, we could try employing it in Fedora COPR.
Ok, done. This copr currently has zchunk and createrepo_c in it. I
did have to disable the python tests for createrepo_c which means I
probably wouldn't use the python bindings with this release.
To enable zchunk creation, run createrepo_c --zck. I've created
dictionaries that are appropriate for Fedora's metadata at
, and they can be used
with --zck-primary-dict, --zck-filelists-dict and --zck-other-dict.
To make zchunk downloads efficient, the same dictionary must be used
each time metadata is generated. Dictionaries aren't mandatory, but
they greatly reduce the size of the compressed metadata.