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=cc5ecc7f713c2c0cb799a140d99139816bad1791

commit cc5ecc7f713c2c0cb799a140d99139816bad1791 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Jan 2 23:33:19 2023 +0100

    Dpkg::Compression: Make xz not emit warnings nor exit non-zero on warnings
    
    When xz does not have enough memory given the requested threads, it
    might end up adjusting the memory usage and number of threads, while
    emitting a warning, and then exiting with non-zero. Both of which we
    do not want from the library.
---
 scripts/Dpkg/Compression.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/Dpkg/Compression.pm b/scripts/Dpkg/Compression.pm
index 6421e1d4e..189be8bda 100644
--- a/scripts/Dpkg/Compression.pm
+++ b/scripts/Dpkg/Compression.pm
@@ -366,6 +366,10 @@ sub compression_get_cmdline_compress {
     }
     my $threads = compression_get_threads();
     if ($comp eq 'xz') {
+        # Do not generate warnings when adjusting memory usage, nor
+        # exit with non-zero due to those not emitted warnings.
+        push @prog, qw(--quiet --no-warn);
+
         # Do not let xz fallback to single-threaded mode, to avoid
         # non-reproducible output.
         push @prog, '--no-adjust';

-- 
Dpkg.Org's dpkg

Reply via email to