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

[lintian] 02/02: c/files.pm: Whitelist feedparser based on source name



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

nthykier pushed a commit to branch master
in repository lintian.

commit 16620d101d82eae318cbe5a2303acfb623b43b31
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Aug 20 19:29:30 2013 +0200

    c/files.pm: Whitelist feedparser based on source name
    
    Whitelist packages allowed to contain the feedparser library based on
    the name of the source package rather than the binary package.  This
    fixes a false positive for python3-feedparser.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/files.pm  |    2 +-
 debian/changelog |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index a080e56..cf42c3c 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -973,7 +973,7 @@ foreach my $file ($info->sorted_index) {
         }
 
         # ---------------- embedded Feedparser library
-        if ($file =~ m,/feedparser\.py$, and $pkg ne 'python-feedparser') {
+        if ($file =~ m,/feedparser\.py$, and $source_pkg ne 'feedparser') {
             open(my $fd, '<', $info->unpacked($file));
             while (<$fd>) {
                 if (m,Universal feed parser,) {
diff --git a/debian/changelog b/debian/changelog
index 91f976c..d1e3738 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -46,6 +46,9 @@ lintian (2.5.16) UNRELEASED; urgency=low
       report.  (Closes: #718690)
     + [BR] Rename font-adobe-copyrighted-fragment tags.
       (Closes: #718820)
+    + [NT] Fix false positive warning about embedded
+      feedparser for python3-feedparser.  Thanks to
+      Etienne Millon for the report.  (Closes: #719163)
   * checks/init.d.{desc,pm}:
     + [NT] Revert init.d-script-call-internal-API for now.
       Refer to #710559 for more information.

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


Reply to: