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

[lintian] 02/02: c/description: Skip picky spell check for auto-generated pkgs



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

nthykier pushed a commit to branch master
in repository lintian.

commit 4bec98b4faa1cff7d432804c49ce5d581da446bb
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Sep 16 10:54:57 2017 +0000

    c/description: Skip picky spell check for auto-generated pkgs
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/description.pm | 7 ++++++-
 debian/changelog      | 4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/checks/description.pm b/checks/description.pm
index 396a338..8b214fe 100644
--- a/checks/description.pm
+++ b/checks/description.pm
@@ -217,7 +217,12 @@ sub run {
     if ($synopsis) {
         check_spelling($synopsis, $group->info->spelling_exceptions,
             $SPELLING_ERROR_IN_SYNOPSIS);
-        check_spelling_picky($synopsis, $PICKY_SPELLING_ERROR_IN_SYNOPSIS);
+        # Auto-generated dbgsym packages will use the package name in
+        # their synopsis.  Unfortunately, some package names trigger a
+        # capitalization error, such as "dbus" -> "D-Bus".  Therefore,
+        # we exempt auto-generated packages from this check.
+        check_spelling_picky($synopsis, $PICKY_SPELLING_ERROR_IN_SYNOPSIS)
+          if not $info->is_pkg_class('auto-generated');
     }
 
     if ($description) {
diff --git a/debian/changelog b/debian/changelog
index 569af92..c2471d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -51,10 +51,12 @@ lintian (2.5.53) UNRELEASED; urgency=medium
   * checks/debian-readme.{pm,desc}:
     + [CL] Ensure readme-debian-contains-debmake-template also checks
       for templates "Automatically generated by debmake".
-  * checks/description.desc:
+  * checks/description.{desc,pm}:
     + [CL] Clarify explanation of description-starts-with-leading-spaces
       tag. Thanks to Taylor Kline <taylor.kline@utexas.edu> for the report
       and patch.  (Closes: #849622)
+    + [NT] Skip capitalization-error-in-description-synopsis for
+      auto-generated packages (such as dbgsym packages).
   * checks/fields.pm:
     + [CL] Ensure that python3-foo packages have "Section: python", not
       just python2-foo.  (Closes: #870272)

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


Reply to: