]> git.saurik.com Git - apt.git/commitdiff
follow dpkg and xz and use CRC64 for xz compression
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 22 Dec 2015 14:56:47 +0000 (15:56 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 22 Dec 2015 14:56:47 +0000 (15:56 +0100)
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.

apt-pkg/contrib/fileutl.cc

index 06c4beeda972c707db50a2303c1295a809cd8602..11b0e658daf208add730a772c6211f9347c58b05 100644 (file)
@@ -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