[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r1339 - in trunk: checks debian testset



Author: rra
Date: 2008-06-05 06:34:24 +0200 (Thu, 05 Jun 2008)
New Revision: 1339

Modified:
   trunk/checks/manpages
   trunk/checks/manpages.desc
   trunk/debian/changelog
   trunk/testset/tags.manpages
Log:
  + [RA] Warn about inclusion of the country name in the localized man
    page directory unless it's one of the known exceptions.

Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages	2008-06-05 04:22:31 UTC (rev 1338)
+++ trunk/checks/manpages	2008-06-05 04:34:24 UTC (rev 1339)
@@ -118,6 +118,13 @@
     my $lang = "";
        $lang = $1 if $t =~ m,^/([^/]+)/man\d/$,o;
 
+    # The country should not be part of the man page locale directory unless
+    # it's one of the known cases where the language is significantly
+    # different between countries.
+    if ($lang =~ /_/ && $lang !~ /^(pt_BR|zh_(CN|TW))$/) {
+	tag "manpage-locale-dir-country-specific", "$file";
+    }
+
     my @pieces = split(/\./, $name);
     my $ext = pop @pieces;
     if ($ext ne 'gz') {

Modified: trunk/checks/manpages.desc
===================================================================
--- trunk/checks/manpages.desc	2008-06-05 04:22:31 UTC (rev 1338)
+++ trunk/checks/manpages.desc	2008-06-05 04:34:24 UTC (rev 1339)
@@ -240,3 +240,13 @@
  provide an english, only a translated manpage. Since english is fallback,
  shipping only a non-english man page leaves most users without a man page
  at all.
+
+Tag: manpage-locale-dir-country-specific
+Type: warning
+Ref: policy 12.1
+Info: This package installs a manual page in a locale directory that
+ includes the country name.  A country name should not be included in the
+ directory name unless it indicates a significant difference in the
+ language.  The known cases where country names are appropriate are pt_BR,
+ zh_CN, zh_TW, and zh_SG.  Please file a bug against Lintian if this is
+ another case where a country name is appropriate.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-06-05 04:22:31 UTC (rev 1338)
+++ trunk/debian/changelog	2008-06-05 04:34:24 UTC (rev 1339)
@@ -22,6 +22,8 @@
       set errors for all man pages with old versions of man and no man
       pages with current versions of man since the new character set
       handling should cope.  (Closes: #474052)
+    + [RA] Warn about inclusion of the country name in the localized man
+      page directory unless it's one of the known exceptions.
   * checks/md5sums:
     + [FL] Don't complain about missing md5sums file if the
       package only contains conffiles.  (Closes: #482869)

Modified: trunk/testset/tags.manpages
===================================================================
--- trunk/testset/tags.manpages	2008-06-05 04:22:31 UTC (rev 1338)
+++ trunk/testset/tags.manpages	2008-06-05 04:34:24 UTC (rev 1339)
@@ -64,4 +64,5 @@
 W: manpages: manpage-has-errors-from-man usr/share/man/man1/test.1p.gz 12: warning: `dep' not defined (probable missing space after `de')
 W: manpages: manpage-has-errors-from-man usr/share/man/man3/included.3.gz 6: warning: `zY' not defined
 W: manpages: manpage-has-useless-whatis-entry usr/share/man/man1/true.1.gz
+W: manpages: manpage-locale-dir-country-specific usr/share/man/de_DE/man1/test-utf8-chars.1p.gz
 W: manpages: package-contains-empty-directory usr/share/man/man1/not-a-man-page.1.gz/


Reply to: