The following commit has been merged in the master branch:
commit 8394c68c543ca4efc309f5c0917cc1d3998d5a79
Author: Guillem Jover <[email protected]>
Date: Thu Feb 25 04:35:48 2010 +0100
libdpkg: Change default lzma compression level from 9 to 6
Set the default compression level low enough to produce packages
that require no more than 10 MiB of memory to decompress, by
lowering it to 6 from 9 (this matches xz internal default compression
level).
Based-on-patch-by: Jonathan Nieder <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index bfbb735..3522d43 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -113,6 +113,8 @@ dpkg (1.15.6) UNRELEASED; urgency=low
instead of insecure tempnam() or tmpnam() functions.
* Remove --license and --licence options from tools.
* Securely remove newly installed files when rolling-back a failed unpack.
+ * Change default lzma compression level from 9 to 6.
+ Thanks to Jonathan Nieder for the initial patch.
[ Modestas Vainius ]
* Implement symbol patterns (Closes: #563752). From now on, it is possible to
diff --git a/lib/dpkg/compress.c b/lib/dpkg/compress.c
index c58f1db..e63d64c 100644
--- a/lib/dpkg/compress.c
+++ b/lib/dpkg/compress.c
@@ -343,7 +343,7 @@ compress_lzma(int fd_in, int fd_out, int compress_level,
const char *desc)
struct compressor compressor_lzma = {
.name = "lzma",
.extension = ".lzma",
- .default_level = 9,
+ .default_level = 6,
.compress = compress_lzma,
.decompress = decompress_lzma,
};
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]