]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1916: * dh_installman: When --language is used, be smarter about stripping
authorjoeyh <joeyh>
Thu, 11 May 2006 00:08:30 +0000 (00:08 +0000)
committerjoeyh <joeyh>
Thu, 11 May 2006 00:08:30 +0000 (00:08 +0000)
  language codes from man page filenames. Only strip things that look like
  codes that match the specified languages. Closes: #366645

debian/changelog
dh_installman

index 95a3b64bb3d94f322acb160fccb156079430b843..9c76e9d384b660946b5d21723f517d9a87654f52 100644 (file)
@@ -1,3 +1,11 @@
+debhelper (5.0.35) UNRELEASED; urgency=low
+
+  * dh_installman: When --language is used, be smarter about stripping 
+    language codes from man page filenames. Only strip things that look like
+    codes that match the specified languages. Closes: #366645
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 10 May 2006 20:07:40 -0400
+
 debhelper (5.0.34) unstable; urgency=low
 
   * dh_installcatalogs: Make sure that /etc/sgml exists. Closes: #364946
index e8ed27da51ca909227da2164742c9d705ac810dc..7f39b9348ef06a221edb33615d00b729b9c10f8b 100755 (executable)
@@ -148,14 +148,14 @@ 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)/;
-                       if (defined $langcode && $langcode ne '') {
-                               # Strip the language code from the instname.
-                               $instname=~s/\.$langcode$//;
-                       }
                }
                elsif ($dh{LANGUAGE} ne 'C') {
                        $langcode=$dh{LANGUAGE};
-                       ($instname)=$basename=~m/(.*?)\./;
+               }
+               
+               if (defined $langcode && $langcode ne '') {
+                       # Strip the language code from the instname.
+                       $instname=~s/\.$langcode$//;
                }
                
                if (defined $langcode && $langcode ne '') {