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

[lintian] 01/01: L::C::Binary: Make is_pkg_class case-insensitive



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

nthykier pushed a commit to branch master
in repository lintian.

commit 393f8f3d37f91acb958a1464e0592d3ce0ce1c8d
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Jun 18 19:30:56 2015 +0200

    L::C::Binary: Make is_pkg_class case-insensitive
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/changelog              | 4 ++++
 lib/Lintian/Collect/Binary.pm | 1 +
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5ef528b..39f68af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -134,6 +134,10 @@ lintian (2.5.32) UNRELEASED; urgency=medium
     + [JW, NT] Normalise spaces a bit better in check_spelling to
       catch some "multi-word" misspellings, where said words are
       not on the same line.  (Closes: #763456)
+  * lib/Lintian/Collect/Binary.pm:
+    + [JW, NT] Make is_pkg_class case-insensitive to avoid some
+      false-positive "empty-binary-package" warnings.
+      (Closes: #789151)
   * lib/Lintian/Collect/Package.pm:
     + [NT] Create "faux" Lintian::Path entries for missing
       intermediate directories.  This avoids a crash and made
diff --git a/lib/Lintian/Collect/Binary.pm b/lib/Lintian/Collect/Binary.pm
index e6e6e05..69bdc40 100644
--- a/lib/Lintian/Collect/Binary.pm
+++ b/lib/Lintian/Collect/Binary.pm
@@ -648,6 +648,7 @@ Needs-Info requirements for using I<is_pkg_class>: L<Same as field|Lintian::Coll
             return;
         }
         return 1 if $desc =~ m/transitional package/;
+        $desc = lc($desc);
         if ($pkg_class eq 'any-meta') {
             my ($section) = $self->field('section', '');
             return 1 if $desc =~ m/$METAPKG_REGEX/o;

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


Reply to: