diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-12-22 15:56:47 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-12-22 15:56:47 +0100 |
commit | 885a1ffd27e621d7cd2452b39e2053e2f1044253 (patch) | |
tree | 6019dfaa8aa8cf19f3b3d8197352c6c6faa55d93 | |
parent | fa89055f13726dcc07f9fe14b5f1e8a7af210d61 (diff) |
follow dpkg and xz and use CRC64 for xz compression
dpkg switched from CRC32 to CRC64 in
777915108d9d36d022dc4fc4151a615fc95e5032 with the message:
| This is the default CRC used by the xz command-line tool, align with
| it and switch from CRC32 to CRC64. It should provide slightly better
| detection against damaged data, at a negligible speed difference.
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 06c4beeda..11b0e658d 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1278,7 +1278,7 @@ public: { if (compressor.Name == "xz") { - if (lzma_easy_encoder(&lzma->stream, xzlevel, LZMA_CHECK_CRC32) != LZMA_OK) + if (lzma_easy_encoder(&lzma->stream, xzlevel, LZMA_CHECK_CRC64) != LZMA_OK) return false; } else |