Commit 2223f456 authored by Chris Lamb's avatar Chris Lamb 💬

Check for packages that encode a version number in their source package name.

parent 12a01b2a
Pipeline #23289 failed with stage
in 0 seconds
......@@ -180,3 +180,16 @@ Info: The specified Python-Version or Python3-Version field is used to
Please remove or update the reference. This warning should be ignored
if you wish to support "sloppy" backports.
Tag: source-package-encodes-python-version
Severity: normal
Certainty: certain
Info: This source package encodes a Python version in its name such
as <tt>python2-foo</tt> or <tt>python3-bar</tt>.
This could result in a misleading future situation where this source
package supports multiple versions as well unnecessary given that the
binary package names will typically encode the supported versions.
Please override this tag with a suitably-commented override if
there is no single upstream codebase that supports both versions.
......@@ -156,6 +156,9 @@ sub _run_source {
tag 'source-package-encodes-python-version'
if $info->name =~ m/^python\d-/;
......@@ -8,6 +8,9 @@ lintian (2.5.111) UNRELEASED; urgency=medium
* checks/menu-format.desc:
+ [CL] Apply a patch from Salvatore Bonaccorso to fix a typo in the
description for the desktop-entry-lacks-icon-entry tag. (MR: !59)
* checks/python.{desc,pm}:
+ [CL] Check for packages that encode a version number in their
source package name.
* checks/scripts.desc:
+ [CL] Warn about packages that use PIUPARTS_TEST (etc.) in their
maintainer scripts. Thanks to Holger Levsen. (Closes: #912040)
Testname: python-source-package-encodes-python-version
Source: python3-foo
Version: 1.0
Description: Check packages that encode their Python version in their name
I: python3-foo: wrong-section-according-to-package-name python3-foo => python
W: python3-foo source: source-package-encodes-python-version
  • won't this match src:python3-defaults ?

    I think you should at least add a that to an internal lintian whitelist.

  • Good shout. 697615d7

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment