Bug#640211: lintian: improvements to third-party-package-in-python-dir
Package: lintian
Version: 2.5.2
Severity: wishlist
Tags: patch
Please see the attached patch.
--
Jakub Wilk
diff --git a/checks/files b/checks/files
--- a/checks/files
+++ b/checks/files
@@ -785,7 +785,8 @@
$is_python = 0;
if (defined $info->field('source')) {
local $_ = $info->field('source');
- $is_python = 1 if /^python(?:\d\.\d)?(?:$|\s)/;
+ $is_python = 1 if /^python(?:\d\.\d)?(?:$|\s)/ or
+ /^python\d?-(?:stdlib-extensions|profiler|old-doctools)(?:$|\s)/;
}
}
tag 'third-party-package-in-python-dir', $file
diff --git a/checks/files.desc b/checks/files.desc
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -504,6 +504,7 @@
for Python 2.6 and later. All other directories in
<tt>/usr/lib/python<i>VERSION</i></tt> are for use by the core python
packages.
+Ref: python-policy 1.5
Tag: perl-module-in-core-directory
Severity: important
diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -66,7 +66,7 @@
(Closes: #629308)
* checks/{filenames,rules}.desc:
+ [NT] Improved the descriptions of some tags. (Closes: #639018)
- * checks/files:
+ * checks/files{,.desc}:
+ [NT] Added exceptions to "extra-license-file" for manpages,
static libraries, .pc-, elf and pyshared-data-files. This
covers all the false-positives currently found in the liblicense
@@ -78,6 +78,9 @@
and are not marked "Architecture: all". Thanks to Evgeni Golov,
Carl FĂźrstenberg and Jari Aalto for the suggestions.
(Closes: #574689)
+ + [JW] Don't emit third-party-package-in-python-dir for packages built
+ from python{,3}-{stdlib-extensions,profiler,old-doctools} sources. Add
+ reference to Python Policy in the tag description.
* checks/menus.desc:
+ [NT] Added reference to the doc-base manual to help people
find the list of valid doc-base sections. (Closes: #584280)
Reply to: