[lintian] 01/01: c/fields: Check for for libjs-* outside of web section. (Closes: #798983)
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch js-package-outside-of-web
in repository lintian.
commit cc808e1717fe343569f83f4ef8a8af2be72861a5
Author: Chris Lamb <lamby@debian.org>
Date: Fri Aug 26 10:50:11 2016 +0100
c/fields: Check for for libjs-* outside of web section. (Closes: #798983)
Signed-off-by: Chris Lamb <lamby@debian.org>
---
checks/fields.pm | 1 +
t/tests/fields-wrong-section/debian/debian/control.in | 11 +++++++++++
t/tests/fields-wrong-section/tags | 1 +
3 files changed, 13 insertions(+)
diff --git a/checks/fields.pm b/checks/fields.pm
index 8ceacf6..1e1baf4 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -109,6 +109,7 @@ my @NAME_SECTION_MAPPINGS = (
[qr/^lib.*-(?:ocaml|camlp4)-dev$/ => 'ocaml'],
[qr/^lib.*-dev$/ => 'libdevel'],
[qr/^gir\d+\.\d+-.*-\d+\.\d+$/ => 'introspection'],
+ [qr/^libjs-/ => 'web'],
);
my %VCS_EXTRACT = (
diff --git a/t/tests/fields-wrong-section/debian/debian/control.in b/t/tests/fields-wrong-section/debian/debian/control.in
index d04e073..7cdc238 100644
--- a/t/tests/fields-wrong-section/debian/debian/control.in
+++ b/t/tests/fields-wrong-section/debian/debian/control.in
@@ -82,6 +82,17 @@ Description: {$description} (OCaml)
things. It should not be installed like a regular package. It may
be an empty package.
+Package: libjs-{$source}
+Architecture: any
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (Javascript)
+ Test for web section.
+ .
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+
Package: libghc-{$source}
Architecture: {$architecture}
Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
diff --git a/t/tests/fields-wrong-section/tags b/t/tests/fields-wrong-section/tags
index 5258a66..15a9ad1 100644
--- a/t/tests/fields-wrong-section/tags
+++ b/t/tests/fields-wrong-section/tags
@@ -10,6 +10,7 @@ W: libfields-wrong-section-ocaml-dev: wrong-section-according-to-package-name li
W: libfields-wrong-section-perl: wrong-section-according-to-package-name libfields-wrong-section-perl => perl
W: libfields-wrong-section-ruby1.8: wrong-section-according-to-package-name libfields-wrong-section-ruby1.8 => ruby
W: libghc-fields-wrong-section: wrong-section-according-to-package-name libghc-fields-wrong-section => haskell
+W: libjs-fields-wrong-section: wrong-section-according-to-package-name libjs-fields-wrong-section => web
W: libphp-fields-wrong-section: wrong-section-according-to-package-name libphp-fields-wrong-section => php
W: python-fields-wrong-section: wrong-section-according-to-package-name python-fields-wrong-section => python
W: r-cran-fields-wrong-section: wrong-section-according-to-package-name r-cran-fields-wrong-section => gnu-r
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: