[lintian] 01/01: Ensure that python3-foo packages have "Section: python", not just python2-foo.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 734dddc0f47926b1fcf8d9e660fc333d2bf20f34
Author: Chris Lamb <lamby@debian.org>
Date: Mon Jul 31 09:12:18 2017 -0400
Ensure that python3-foo packages have "Section: python", not just python2-foo.
---
checks/fields.pm | 2 +-
debian/changelog | 3 +++
t/tests/fields-wrong-section/debian/debian/control.in | 11 +++++++++++
t/tests/fields-wrong-section/tags | 1 +
4 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/checks/fields.pm b/checks/fields.pm
index d0d6fec..ea5ad85 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -100,7 +100,7 @@ my @NAME_SECTION_MAPPINGS = (
[qr/-docs?$/ => 'doc'],
[qr/-dbg(?:sym)?$/ => 'debug'],
[qr/^(?:python-)?zope/ => 'zope'],
- [qr/^python-/ => 'python'],
+ [qr/^python3?-/ => 'python'],
[qr/^r-(?:cran|bioc|other)-/ => 'gnu-r'],
[qr/^lib.*-perl$/ => 'perl'],
[qr/^lib.*-cil(?:-dev)?$/ => 'cli-mono'],
diff --git a/debian/changelog b/debian/changelog
index e85b368..4418e1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,9 @@ lintian (2.5.53) UNRELEASED; urgency=medium
missing-build-dependency-for-dh_-command that can be exposed by
following the advice for the recently added
useless-autoreconf-build-depends tag. (Closes: #869541)
+ * checks/fields.pm:
+ + [CL] Ensure that python3-foo packages have "Section: python", not
+ just python2-foo. (Closes: #870272)
* checks/scripts.pm:
+ [CL] Correct false positives in
unconditional-use-of-dpkg-statoverride by detecting "if !" as a
diff --git a/t/tests/fields-wrong-section/debian/debian/control.in b/t/tests/fields-wrong-section/debian/debian/control.in
index 0f0001b..e5c5655 100644
--- a/t/tests/fields-wrong-section/debian/debian/control.in
+++ b/t/tests/fields-wrong-section/debian/debian/control.in
@@ -71,6 +71,17 @@ Description: {$description} (Python)
things. It should not be installed like a regular package. It may
be an empty package.
+Package: python3-{$source}
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (Python 3)
+ Test for Python section for Python 3.
+ .
+ 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: lib{$source}-ocaml-dev
Architecture: {$architecture}
Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
diff --git a/t/tests/fields-wrong-section/tags b/t/tests/fields-wrong-section/tags
index e6a321c..9508a72 100644
--- a/t/tests/fields-wrong-section/tags
+++ b/t/tests/fields-wrong-section/tags
@@ -13,5 +13,6 @@ W: libghc-fields-wrong-section: wrong-section-according-to-package-name libghc-f
W: libjs-fields-wrong-section: wrong-section-according-to-package-name libjs-fields-wrong-section => javascript
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: python3-fields-wrong-section: wrong-section-according-to-package-name python3-fields-wrong-section => python
W: r-cran-fields-wrong-section: wrong-section-according-to-package-name r-cran-fields-wrong-section => gnu-r
X: fields-wrong-section source: debian-control-has-obsolete-dbg-package fields-wrong-section-dbg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: