From 9b86d17708f7714188a70c35ba04ea9969814a9b Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Tue, 27 Jun 2017 15:53:22 +0000 Subject: dh_installman: Use new glob_expand-enabled filearray Signed-off-by: Niels Thykier --- dh_installman | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dh_installman') diff --git a/dh_installman b/dh_installman index f1ad517f..dbde4514 100755 --- a/dh_installman +++ b/dh_installman @@ -123,6 +123,9 @@ init(options => { my (@sofiles, @sodests); my @all_packages = getpackages(); +my @search_dirs = ('.'); +my $error_handler = compat(10) ? \&glob_expand_error_handler_warn_and_discard : \&glob_expand_error_handler_reject; + on_items_in_parallel(\@all_packages, sub { foreach my $package (@_) { @@ -132,7 +135,7 @@ on_items_in_parallel(\@all_packages, sub { my $file = pkgfile($package, "manpages"); my @manpages; - @manpages = filearray($file, ".") if $file; + @manpages = filearray($file, \@search_dirs, $error_handler) if $file; if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { push @manpages, @ARGV; -- cgit v1.2.3