From b7da6ea323aae5bdd2a89c7ab4d3356ad938f683 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Wed, 28 Jun 2017 12:17:42 +0000 Subject: dh_installdocs: Do less under nodoc profile Signed-off-by: Niels Thykier --- dh_installdocs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'dh_installdocs') diff --git a/dh_installdocs b/dh_installdocs index fd594ffc..54b8a248 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -181,6 +181,8 @@ init(options => { }); my $called_getpackages = 0; +my $nodocs = 0; +$nodocs = 1 if is_build_profile_active('nodoc'); foreach my $package (@{$dh{DOPACKAGES}}) { next if is_udeb($package); @@ -220,12 +222,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my @docs; - if ($file) { - @docs=filearray($file, "."); - } + if (not $nodocs) { + if ($file) { + @docs = filearray($file, "."); + } - if (($package eq $dh{FIRSTPACKAGE} || ($dh{PARAMS_ALL} && ! $link_doc)) && @ARGV) { - push @docs, @ARGV; + if (($package eq $dh{FIRSTPACKAGE} || ($dh{PARAMS_ALL} && !$link_doc)) && @ARGV) { + push @docs, @ARGV; + } } if (@docs) { -- cgit v1.2.3