diff options
author | Niels Thykier <niels@thykier.net> | 2017-06-27 15:53:22 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-06-28 13:47:16 +0000 |
commit | 9b86d17708f7714188a70c35ba04ea9969814a9b (patch) | |
tree | 298a69f2a4f13e3e549f9b68168e4c341cab867f /dh_installman | |
parent | bb60c847cd5adfd9aac1bb2c79513525aefad6de (diff) | |
download | debhelper-9b86d17708f7714188a70c35ba04ea9969814a9b.tar.gz |
dh_installman: Use new glob_expand-enabled filearray
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installman')
-rwxr-xr-x | dh_installman | 5 |
1 files changed, 4 insertions, 1 deletions
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; |