[debhelper-devel] [debhelper] 03/07: dh_strip: Process packages in parallel

Niels Thykier nthykier at moszumanska.debian.org
Mon Jun 26 17:27:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 4778fefc95f87d49e09f897822c4a8807e435244
Author: Niels Thykier <niels at thykier.net>
Date:   Mon Jun 26 16:50:44 2017 +0000

    dh_strip: Process packages in parallel
    
    Re-indent of code pending next commit...
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 1 +
 dh_strip         | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e4e0c37..0040caa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,7 @@ debhelper (10.5.1) UNRELEASED; urgency=medium
     disabled by --exclude).
   * dh_builddeb: Account for dbgsym packages separately when determining
     how many tasks can be run in parallel.
+  * dh_strip: Process packages in parallel.
 
  -- Niels Thykier <niels at thykier.net>  Sun, 25 Jun 2017 18:02:30 +0000
 
diff --git a/dh_strip b/dh_strip
index a05cf11..a4f2e73 100755
--- a/dh_strip
+++ b/dh_strip
@@ -295,7 +295,8 @@ sub attach_debug {
 
 my %all_packages = map { $_ => 1 } getpackages();
 
-foreach my $package (@{$dh{DOPACKAGES}}) {
+on_pkgs_in_parallel {
+foreach my $package (@_) {
 	my $tmp=tmpdir($package);
 
 	# Support for keeping the debugging symbols in a detached file.
@@ -392,6 +393,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		close($fd) or error("close $path failed: $!");
 	}
 }
+};
 
 =head1 SEE ALSO
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list