lintian: r603 - in trunk: checks debian testset
Author: rra
Date: 2006-04-03 05:14:06 +0200 (Mon, 03 Apr 2006)
New Revision: 603
Modified:
trunk/checks/fields
trunk/checks/fields.desc
trunk/debian/changelog
trunk/testset/tags.dh-test
Log:
+ [RA] Look for an explicit section of unknown, probably left over
from dh_make templates, and diagnose it with an error rather than a
warning. Reported by Jari Aalto. (Closes: #355032)
Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields 2006-04-03 02:14:09 UTC (rev 602)
+++ trunk/checks/fields 2006-04-03 03:14:06 UTC (rev 603)
@@ -244,6 +244,8 @@
} elsif (scalar @parts > 1) {
tag "unknown-section", "$section" unless $known_archive_parts{$parts[0]};
tag "unknown-section", "$section" unless $known_sections{$parts[1]};
+ } elsif ($parts[0] eq 'unknown') {
+ tag "section-is-dh_make-template";
} else {
tag "unknown-section", "$section" unless $known_sections{$parts[0]};
}
Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc 2006-04-03 02:14:09 UTC (rev 602)
+++ trunk/checks/fields.desc 2006-04-03 03:14:06 UTC (rev 603)
@@ -243,6 +243,14 @@
is in the contrib distribution.
Ref: policy 2.4
+Tag: section-is-dh_make-template
+Type: error
+Info: The `Section:' field in this package's control file is set to
+ unknown. This is not a valid section, and usually means a dh_make
+ template control file was used and never modified to set the correct
+ section.
+Ref: policy 2.4
+
Tag: wrong-section-for-udeb
Type: warning
Info: udeb packages should have `Section: debian-installer'.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2006-04-03 02:14:09 UTC (rev 602)
+++ trunk/debian/changelog 2006-04-03 03:14:06 UTC (rev 603)
@@ -19,6 +19,9 @@
Triplett. No packages are allowed to build-depend, and only
packages that look like metapackages (arch: all, no files outside of
/usr/share/doc) are allowed to depend. (Closes: #347169)
+ + [RA] Look for an explicit section of unknown, probably left over
+ from dh_make templates, and diagnose it with an error rather than a
+ warning. Reported by Jari Aalto. (Closes: #355032)
* checks/manpages:
+ [RA] Use system_env instead of system and sanitize the environment
before running man -l out of caution and to avoid extraneous output
Modified: trunk/testset/tags.dh-test
===================================================================
--- trunk/testset/tags.dh-test 2006-04-03 02:14:09 UTC (rev 602)
+++ trunk/testset/tags.dh-test 2006-04-03 03:14:06 UTC (rev 603)
@@ -1,9 +1,9 @@
E: dh-test: description-is-dh_make-template
E: dh-test: helper-templates-in-copyright
+E: dh-test: section-is-dh_make-template
W: dh-test source: dh_suidregister-is-obsolete
W: dh-test source: dh_testversion-is-deprecated
W: dh-test source: native-package-with-dash-version
W: dh-test source: package-uses-deprecated-debhelper-compat-version 3
W: dh-test: readme-debian-is-debmake-template
-W: dh-test: unknown-section unknown
W: dh-test: wrong-bug-number-in-closes l3:#nnnn
Reply to: