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

[lintian] 02/02: Do not trigger package-installs-java-bytecode if the path contains "WEB-INF", "demo", "doc" etc. (Closes: #879860)



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

lamby pushed a commit to branch master
in repository lintian.

commit 0313cff3eb8d14323228bec2f83dc0b510362c1e
Author: Chris Lamb <lamby@debian.org>
Date:   Thu Oct 26 16:46:09 2017 +0100

    Do not trigger package-installs-java-bytecode if the path contains "WEB-INF", "demo", "doc" etc. (Closes: #879860)
---
 checks/files.pm                                                 | 3 ++-
 debian/changelog                                                | 2 ++
 t/tests/files-java-classfiles/debian/debian/libfoo-java.install | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/checks/files.pm b/checks/files.pm
index 8e6d2dc..9ee7f4c 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1163,7 +1163,8 @@ sub run {
         }
 
         # ---------------- .class (compiled Java files)
-        if ($fname =~ m,\.class$,o) {
+        if (   $fname =~ m,\.class$,o
+            && $fname !~ m,(?:WEB-INF|demo|doc|example|sample|test),o) {
             tag 'package-installs-java-bytecode', $file;
         }
 
diff --git a/debian/changelog b/debian/changelog
index f7951d5..3c902b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -40,6 +40,8 @@ lintian (2.5.56) UNRELEASED; urgency=medium
   * checks/files.pm:
     + [CL] Lower the severity of package-installs-java-bytecode from
       "error" to "warning".  (Closes: #879862)
+    + [CL] Do not trigger package-installs-java-bytecode if the path
+      contains "WEB-INF", "demo", "doc" etc.  (Closes: #879860)
   * checks/init.d.pm:
     + [CL] Check for files that use content from the /etc/init.d/skeleton
       template. Thanks to Christoph Biedl for the idea.  (Closes: #879152)
diff --git a/t/tests/files-java-classfiles/debian/debian/libfoo-java.install b/t/tests/files-java-classfiles/debian/debian/libfoo-java.install
index 52df2a2..cc0c1b3 100644
--- a/t/tests/files-java-classfiles/debian/debian/libfoo-java.install
+++ b/t/tests/files-java-classfiles/debian/debian/libfoo-java.install
@@ -1 +1,2 @@
 mini.class usr/share/java/foo/
+mini.class usr/share/java/WEB-INF

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


Reply to: