summaryrefslogtreecommitdiff
path: root/Debian/Debhelper
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-06-26 11:06:34 +0000
committerNiels Thykier <niels@thykier.net>2017-06-26 11:09:24 +0000
commit71dabb453dcd32e5822253a5760875e5304a9e9e (patch)
tree7256bcc51897b0b18d87b5d61a9623e30fc4c943 /Debian/Debhelper
parent0497ab2e0eae0dd146d11ce975d33cdedebe00f9 (diff)
downloaddebhelper-71dabb453dcd32e5822253a5760875e5304a9e9e.tar.gz
Dh_Lib: Rename sub to on_items_in_parallel
Turns out that the sub is not specific to packages, so rename it to make it more self-descriptive (and to avoid making consumers to believe it is more limited than it is). Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index e84222bd..b64309d6 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -54,7 +54,7 @@ use vars qw(@EXPORT %dh);
&open_gz &reset_perm_and_owner &deprecated_functionality
&log_installed_files &buildarch &rename_path
&on_pkgs_in_parallel &on_selected_pkgs_in_parallel
- &rm_files &make_symlink_raw_target
+ &rm_files &make_symlink_raw_target &on_items_in_parallel
);
# The Makefile changes this if debhelper is installed in a PREFIX.
@@ -1669,10 +1669,10 @@ sub log_installed_files {
sub on_pkgs_in_parallel(&) {
unshift(@_, $dh{DOPACKAGES});
- goto \&on_selected_pkgs_in_parallel;
+ goto \&on_items_in_parallel;
}
-sub on_selected_pkgs_in_parallel {
+sub on_items_in_parallel {
my ($pkgs_ref, $code) = @_;
my @pkgs = @{$pkgs_ref};
my %pids;
@@ -1726,6 +1726,9 @@ sub on_selected_pkgs_in_parallel {
return;
}
+*on_selected_pkgs_in_parallel = \&on_items_in_parallel;
+
+
1
# Local Variables: