[debhelper-devel] [debhelper] 06/08: dh_installman: Pass -l to man when recoding

Niels Thykier nthykier at moszumanska.debian.org
Sun Jul 16 12:43:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch shell-out-less
in repository debhelper.

commit 563c4abcfb841afc0dee960766b60fd0f2d9ed24
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Jul 15 14:49:01 2017 +0000

    dh_installman: Pass -l to man when recoding
    
    It saves having man(1) consider the system collection.
    
    Thanks: Colin Watson <cjwatson at debian.org>
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 1 +
 dh_installman    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2e93937..a786542 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,7 @@ debhelper (10.7) UNRELEASED; urgency=medium
     substituting into the snippet.  This variant (like the subroutine
     variant) avoids forking a lot of subprocesses and need not worry
     about a shell possible interpreting metacharacters.
+  * dh_installman: Pass "-l" to man when recoding the manpages.
 
  -- Niels Thykier <niels at thykier.net>  Sat, 15 Jul 2017 09:42:32 +0000
 
diff --git a/dh_installman b/dh_installman
index a78f8c5..704dbbc 100755
--- a/dh_installman
+++ b/dh_installman
@@ -295,7 +295,7 @@ if (defined `man --version`) {
 			for my $manpage (@_) {
 				my $manpage_tmp = "${manpage}.dh-new";
 				my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}";
-				doit({ stdout => $manpage_tmp }, 'man', '--recode', 'UTF-8', $manpage_cmd);
+				doit({ stdout => $manpage_tmp }, 'man', '-l', '--recode', 'UTF-8', $manpage_cmd);
 				# recode uncompresses compressed pages
 				my $orig = $manpage;
 				rm_files($orig) if $manpage =~ s/\.(gz|Z)$//;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list