summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-07-05 08:22:19 +0000
committerNiels Thykier <niels@thykier.net>2017-07-05 08:22:26 +0000
commit4064870b59e87f01460e583687beb97b5a00f3a6 (patch)
treeda24e70c1ae98e39337d929c5ba3223c053b6a3f /dh_installman
parent35c18c7e9421ea8c459851d6146755af8fe74518 (diff)
downloaddebhelper-4064870b59e87f01460e583687beb97b5a00f3a6.tar.gz
dh_installman: Fix regression with -P/dir
Fixes: f9999ffaa5995ebef7cc9c5dc1dc7efc10bb5604 Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installman b/dh_installman
index 4089d1d6..ead17526 100755
--- a/dh_installman
+++ b/dh_installman
@@ -291,7 +291,8 @@ if (defined `man --version`) {
on_items_in_parallel(\@manpages_to_reencode, sub {
for my $manpage (@_) {
my $manpage_tmp = "${manpage}.dh-new";
- complex_doit "man --recode UTF-8 ./\Q$manpage\E > \Q$manpage_tmp\E";
+ my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}";
+ complex_doit "man --recode UTF-8 \Q${manpage_cmd}\E > \Q$manpage_tmp\E";
# recode uncompresses compressed pages
rm_files($manpage) if $manpage =~ s/\.(gz|Z)$//;
rename_path($manpage_tmp, $manpage);