[lintian] 01/03: c/fields: Check for for libjs-* outside of web section
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 090708dc429933ee62f5b5512ba3431fab55bff8
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>
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/fields.pm | 1 +
debian/changelog | 2 ++
t/tests/fields-wrong-section/debian/debian/control.in | 11 +++++++++++
t/tests/fields-wrong-section/tags | 1 +
4 files changed, 15 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/debian/changelog b/debian/changelog
index a0bcf5c..53639c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ lintian (2.5.47) UNRELEASED; urgency=medium
* checks/fields.{desc,pm}:
+ [JW] Fix typos.
+ [JW] Escape dots in some regexps.
+ + [NT] Apply patch from Chris Lamb to check that libjs-* packages
+ are in the "web" section. (Closes: #798983)
* checks/files.{desc,pm}:
+ [JW] Fix typos.
+ [NT] Apply patch from Chris Lamb to catch ".coverage" files in
diff --git a/t/tests/fields-wrong-section/debian/debian/control.in b/t/tests/fields-wrong-section/debian/debian/control.in
index 514f252..044798f 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: