[debhelper-devel] [debhelper] 09/17: dh_installman: Fix a bug in the c11 language regex

Niels Thykier nthykier at moszumanska.debian.org
Thu Jun 29 15:49:20 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit c88842e1ce7a7d12baa127150c098522fce189a8
Author: Niels Thykier <niels at thykier.net>
Date:   Thu Jun 29 08:26:46 2017 +0000

    dh_installman: Fix a bug in the c11 language regex
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_installman | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh_installman b/dh_installman
index e7bfc4c..37ffe04 100755
--- a/dh_installman
+++ b/dh_installman
@@ -214,7 +214,7 @@ on_items_in_parallel(\@all_packages, sub {
 				# language code to the filename, so detect that and
 				# redirect to appropriate directory, stripping the code.
 				($langcode) = $basename =~ m/\.([a-z][a-z](?:_[A-Z][A-Z])?)\.(?:[1-9]|man)/;
-			} elsif (not compat(10) and $page =~ m{/man/([a-z][a-z](?:_[A-Z][A-Z])?)(?:\.[^/]+)?/man[1-9]/}) {
+			} elsif (not compat(10) and $page =~ m{/man/(?:([a-z][a-z](?:_[A-Z][A-Z])?)(?:\.[^/]+)?)?/man[1-9]/}) {
 				$langcode = $1;
 			} elsif ($dh{LANGUAGE} ne 'C') {
 				$langcode = $dh{LANGUAGE};

-- 
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