diff options
author | Niels Thykier <niels@thykier.net> | 2017-04-03 10:17:47 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-04-08 07:23:43 +0000 |
commit | d091304c331ff173e4341b71b3a779e7a680d468 (patch) | |
tree | 195ce7b52d382d052e30a22bdd14e61ae409cb79 /dh_installman | |
parent | 5fba09155507e5b2c93ff4efd2a1a5817a18cef7 (diff) | |
download | debhelper-d091304c331ff173e4341b71b3a779e7a680d468.tar.gz |
dh_installman: always log manpages for all packages
Like with dh_install, we have to log installed files for all packages
(even those not acted on). Otherwise, dh_missing will get the wrong
results for "dpkg-buildpackage -B/-A" builds where only a subset of
the packages are installed.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installman')
-rwxr-xr-x | dh_installman | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dh_installman b/dh_installman index 6540a6f0..8093777d 100755 --- a/dh_installman +++ b/dh_installman @@ -98,11 +98,12 @@ my @sodests; # PROMISE: DH NOOP WITHOUT manpages tmp(usr/share/man) -foreach my $package (@{$dh{DOPACKAGES}}) { +foreach my $package (getpackages()) { next if is_udeb($package); my $tmp=tmpdir($package); my $file=pkgfile($package,"manpages"); + my $skip_install=! grep { $_ eq $package } @{$dh{DOPACKAGES}}; my @manpages; @manpages=filearray($file, ".") if $file; @@ -111,6 +112,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { push @manpages, @ARGV; } + log_installed_files($package, @manpages); + + next if $skip_install; + foreach my $page (@manpages) { my $basename=basename($page); @@ -187,8 +192,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } } - log_installed_files($package, @manpages); - # Now the .so conversion. @sofiles=@sodests=(); foreach my $dir (qw{usr/share/man}) { |