From e676533cd7e894251d935224e24abcccaf164aaa Mon Sep 17 00:00:00 2001 From: joeyh Date: Tue, 24 Jan 2006 01:42:00 +0000 Subject: r1866: releasing version 5.0.20 --- dh_installman | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dh_installman') diff --git a/dh_installman b/dh_installman index df0ad44e..f054796c 100755 --- a/dh_installman +++ b/dh_installman @@ -148,8 +148,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # 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)/; - # Strip the language code from the instname. - $instname=~s/\.$langcode$//; + if (defined $langcode && $langcode ne '') { + # Strip the language code from the instname. + $instname=~s/\.$langcode$//; + } } elsif ($dh{LANGUAGE} ne 'C') { $langcode=$dh{LANGUAGE}; -- cgit v1.2.3