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

[lintian] 02/03: Avoid a false positive in jsom for defaultpresets.xml from openmapstreet.



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit 21c35904fbe0dbfad906ffe1dcbebca4689d00ad
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Sun May 31 21:33:45 2015 +0200

    Avoid a false positive in jsom for defaultpresets.xml from openmapstreet.
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/files.pm  | 6 +++++-
 debian/changelog | 2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index 5051eb9..1d458d2 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1348,7 +1348,11 @@ sub run {
 
             # ---------------- html/javascript
             if ($fname =~ m,\.(?:x?html?|js|xht|xml|css)$,i) {
-                detect_privacy_breach($info,$file);
+                if($source_pkg eq 'josm' and $file->basename eq 'defaultpresets.xml') {
+                    # false positive
+                } else {
+                    detect_privacy_breach($info,$file);
+                }
             }
             # ---------------- fonts
             elsif ($fname =~ m,/([\w-]+\.(?:[to]tf|pfb))$,i) {
diff --git a/debian/changelog b/debian/changelog
index 7853947..581a6da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,8 @@ lintian (2.5.32) UNRELEASED; urgency=medium
     + [BR] Detect package shipping oui or iab ieee database.
     + [NT] Add a check for packages without intermediate
       directories.
+    + [BR] Avoid a false positive in jsom for defaultpresets.xml
+      from openmapstreet.
   * checks/manpages.{desc,pm}:
     + [NT] Retire the hyphen-used-as-minus-sign tag as upstream now
       renders both "-" and "\-" as HYPHEN-MINUS.  (Closes: #785353)

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


Reply to: