[Git][reproducible-builds/strip-nondeterminism][master] Parallelise dh_strip_nondeterminism script. (MR: !3)
Chris Lamb
gitlab at salsa.debian.org
Tue Jan 8 18:50:41 CET 2019
Chris Lamb pushed to branch master at Reproducible Builds / strip-nondeterminism
Commits:
1832b76a by Igor Dvorzhak at 2019-01-08T17:50:06Z
Parallelise dh_strip_nondeterminism script. (MR: !3)
Signed-off-by: Chris Lamb <lamby at debian.org>
- - - - -
1 changed file:
- bin/dh_strip_nondeterminism
Changes:
=====================================
bin/dh_strip_nondeterminism
=====================================
@@ -7,6 +7,7 @@ dh_strip_nondeterminism - strip uninteresting, nondeterministic information from
=cut
use strict;
+use warnings;
use B;
use File::Find;
use Debian::Debhelper::Dh_Lib;
@@ -84,12 +85,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
verbose_print("Using $File::StripNondeterminism::canonical_time as canonical time");
- foreach (@nondeterministic_files) {
- my ($path, $normalize) = @$_;
- verbose_print("Normalizing $path using " . handler_name($normalize));
- eval { $normalize->($path) or nonquiet_print("Normalized $path"); 1; }
- or error("$path: $@");
- }
+ on_items_in_parallel(\@nondeterministic_files, sub {
+ foreach (@_) {
+ my ($path, $normalize) = @$_;
+ verbose_print("Normalizing $path using " . handler_name($normalize));
+ eval { $normalize->($path) or nonquiet_print("Normalized $path"); 1; }
+ or error("$path: $@");
+ }
+ });
}
=head1 SEE ALSO
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/1832b76a3971539b3050ccc8c544a57b1ebc9280
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/1832b76a3971539b3050ccc8c544a57b1ebc9280
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190108/d0efe6c5/attachment.html>
More information about the rb-commits
mailing list