This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2b8000184edafd0baa74c709d581a0ec7763f7bb commit 2b8000184edafd0baa74c709d581a0ec7763f7bb Author: Guillem Jover <[email protected]> AuthorDate: Thu Dec 22 03:18:46 2022 +0100 Dpkg::Compression: Clarify the compression_get/set_default_level() are global These functions handle the global default level, not just a specific compression level. --- scripts/Dpkg/Compression.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/Dpkg/Compression.pm b/scripts/Dpkg/Compression.pm index 6da2310a8..6c37d4919 100644 --- a/scripts/Dpkg/Compression.pm +++ b/scripts/Dpkg/Compression.pm @@ -218,8 +218,10 @@ sub compression_set_default { =item $level = compression_get_default_level() -Return the default compression level used when compressing data. It's "9" -for "gzip" and "bzip2", "6" for "xz" and "lzma", unless +Return the global default compression level used when compressing data if +it has been set, otherwise the default level for the default compressor. + +It's "9" for "gzip" and "bzip2", "6" for "xz" and "lzma", unless C<compression_set_default_level> has been used to change it. =cut @@ -234,9 +236,9 @@ sub compression_get_default_level { =item compression_set_default_level($level) -Change the default compression level. Passing undef as the level will -reset it to the compressor specific default, otherwise errors out if the -level is not valid (see C<compression_is_valid_level>). +Change the global default compression level. Passing undef as the level will +reset it to the global default compressor specific default, otherwise errors +out if the level is not valid (see C<compression_is_valid_level>). =cut -- Dpkg.Org's dpkg

