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=c01058887174361fc29e7bd6ac9c52c51827df8f commit c01058887174361fc29e7bd6ac9c52c51827df8f Author: Guillem Jover <[email protected]> AuthorDate: Sun Dec 18 23:57:57 2022 +0100 dpkg-source: Add new --threads-max option to control threaded compressors --- man/dpkg-source.pod | 5 +++++ scripts/dpkg-source.pl | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/man/dpkg-source.pod b/man/dpkg-source.pod index df45f038a..be5e2046e 100644 --- a/man/dpkg-source.pod +++ b/man/dpkg-source.pod @@ -325,6 +325,11 @@ packages with broken versions, just for backwards compatibility. =over +=item B<--threads-max=>I<threads> + +Sets the maximum number of threads allowed for compressors that support +multi-threaded operations (since dpkg 1.21.14). + =item B<-q> Sets quiet mode to suppress warnings. diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index 221a7b598..2df87a6bb 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -160,6 +160,10 @@ while (@options) { usageerr(g_('%s is not a compression level'), $comp_level) unless compression_is_valid_level($comp_level); compression_set_default_level($comp_level); + } elsif (m/^--threads-max=(.*)$/) { + my $threads = $1; + $options{comp_threads} = $threads; + compression_set_threads($threads); } elsif (m/^-c(.*)$/) { $controlfile = $1; } elsif (m/^-l(.*)$/) { @@ -654,6 +658,8 @@ sub usage { get_format_help() . "\n" . g_( 'General options: + --threads-max=<threads> + use at most <threads> with compressor. -q quiet mode. -?, --help show this help message. --version show the version.') -- Dpkg.Org's dpkg

