summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman5
1 files changed, 3 insertions, 2 deletions
diff --git a/dh_installman b/dh_installman
index fb7c8eb..e118281 100755
--- a/dh_installman
+++ b/dh_installman
@@ -197,8 +197,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
# Now utf-8 conversion.
- foreach my $dir (qw{usr/share/man}) {
- if (-e "$tmp/$dir") {
+ if (defined `man --version`) {
+ foreach my $dir (qw{usr/share/man}) {
+ next unless -e "$tmp/$dir";
find(sub {
return if ! -f $_ || -l $_;
my ($tmp, $orig)=($_.".new", $_);