deltas: Don't try to rollsum/bsdiff .xz files
authorColin Walters <walters@verbum.org>
Tue, 7 Nov 2017 22:52:12 +0000 (17:52 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Nov 2017 03:10:49 +0000 (03:10 +0000)
commit9856ed38404b709877d94a4c3b7996be7a4fe84f
tree15e9acf0b04e2975de73b87fff596940f5901edb
parent3cf53f7c58540ac9ea0ac3d1a2c3fe548ba0907d
deltas: Don't try to rollsum/bsdiff .xz files

Fedora switched to 'xz' compress kernel modules, and recently
[RHEL7 did too](https://bugzilla.redhat.com/show_bug.cgi?id=1367496).
This compression defeats bsdiff.

While we have a "rollsum-able" test, we don't have a "bsdiff-able" test as it'd
be very expensive (we'd have to bsdiff, then apply it and compare the result).

Let's do the tactical quick fix here and just not try to delta files ending in
`.xz.`. This avoids us using bsdiff pointlessly for over 4000 files, which is
quite a notable speed increase for generating deltas.

Closes: #1333
Approved by: jlebon
src/libostree/ostree-repo-static-delta-compilation-analysis.c