summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-06-28 12:45:04 +0000
committerNiels Thykier <niels@thykier.net>2017-06-29 11:37:05 +0000
commitc9dcdb87a0340f498aaf53c7778e2644f10a43df (patch)
treef547a26f824d03f85e2036559947b6cb43968924 /dh_installman
parent5fc56713c94a62c7aa959b9f64336366fa543f86 (diff)
downloaddebhelper-c9dcdb87a0340f498aaf53c7778e2644f10a43df.tar.gz
dh_installman: Ignore missing manpages under nodoc profile
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman6
1 files changed, 5 insertions, 1 deletions
diff --git a/dh_installman b/dh_installman
index dbde4514..4bbbea3f 100755
--- a/dh_installman
+++ b/dh_installman
@@ -125,6 +125,10 @@ 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;
+my $nodocs = is_build_profile_active('nodoc') ? 1 : 0;
+# We cannot assume documentation is built under nodoc, but if it is we must flag it as handled
+# or dh_missing might make noise.
+$error_handler = \&glob_expand_error_handler_silently_ignore if $nodocs;
on_items_in_parallel(\@all_packages, sub {
@@ -143,7 +147,7 @@ on_items_in_parallel(\@all_packages, sub {
log_installed_files($package, @manpages);
- next if not process_pkg($package);
+ next if not process_pkg($package) or $nodocs;
foreach my $page (@manpages) {
my $basename = basename($page);