summaryrefslogtreecommitdiff
path: root/dh_strip
diff options
context:
space:
mode:
Diffstat (limited to 'dh_strip')
-rwxr-xr-xdh_strip12
1 files changed, 10 insertions, 2 deletions
diff --git a/dh_strip b/dh_strip
index 4de68e8f..beca220c 100755
--- a/dh_strip
+++ b/dh_strip
@@ -297,7 +297,7 @@ sub attach_debug {
my %all_packages = map { $_ => 1 } getpackages();
-on_pkgs_in_parallel {
+sub process_packages {
foreach my $package (@_) {
my $tmp=tmpdir($package);
@@ -395,7 +395,15 @@ on_pkgs_in_parallel {
close($fd) or error("close $path failed: $!");
}
}
-};
+}
+
+if ($dh{DEBUGPACKAGE}) {
+ # Non-deterministic issues with --dbg-package and parallelism (see
+ # #872007). Analysis and patches welcome for this case.
+ process_packages(@{$dh{DOPACKAGES}});
+} else {
+ on_pkgs_in_parallel(\&process_packages);
+}
=head1 SEE ALSO