lintian: r952 - in trunk: checks debian testset testset/binary/debian
Author: rra
Date: 2007-10-15 01:34:16 +0200 (Mon, 15 Oct 2007)
New Revision: 952
Modified:
trunk/checks/description
trunk/checks/description.desc
trunk/debian/changelog
trunk/testset/binary/debian/control
trunk/testset/tags.binary
Log:
* checks/description{.desc,}:
+ [RA] Warn (at info level for now) about Homepage pseudo-fields in
the extended description. (Closes: #444336)
Modified: trunk/checks/description
===================================================================
--- trunk/checks/description 2007-10-14 23:20:40 UTC (rev 951)
+++ trunk/checks/description 2007-10-14 23:34:16 UTC (rev 952)
@@ -105,6 +105,10 @@
tag "description-contains-tabs", "" unless $tabs++;
}
+ if (m,^\s*Homepage: https?://,i) {
+ tag "description-contains-homepage";
+ }
+
if ($lines == 1) {
# checks for the first line of the extended description:
if (m/^\s/o) {
Modified: trunk/checks/description.desc
===================================================================
--- trunk/checks/description.desc 2007-10-14 23:20:40 UTC (rev 951)
+++ trunk/checks/description.desc 2007-10-14 23:34:16 UTC (rev 952)
@@ -97,3 +97,11 @@
users of 80x25 terminals, it is recommended that the lines do not exceed
80 characters.
Ref: policy 3.4.1
+
+Tag: description-contains-homepage
+Type: info
+Info: The extended description contains a "Homepage:" pseudo-header
+ following the old Developer's Reference recommendation. As of 1.14.6,
+ dpkg now supports Homepage: as a regular field in
+ <tt>debian/control</tt>. This header should be moved from the extended
+ description to the fields for the relevant source or binary packages.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2007-10-14 23:20:40 UTC (rev 951)
+++ trunk/debian/changelog 2007-10-14 23:34:16 UTC (rev 952)
@@ -2,8 +2,11 @@
* checks/common_data.pm:
+ [RA] Allow Homepage in source and binary packages.
+ * checks/description{.desc,}:
+ + [RA] Warn (at info level for now) about Homepage pseudo-fields in
+ the extended description. (Closes: #444336)
- -- Russ Allbery <rra@debian.org> Sun, 14 Oct 2007 16:19:03 -0700
+ -- Russ Allbery <rra@debian.org> Sun, 14 Oct 2007 16:33:18 -0700
lintian (1.23.34) unstable; urgency=low
Modified: trunk/testset/binary/debian/control
===================================================================
--- trunk/testset/binary/debian/control 2007-10-14 23:20:40 UTC (rev 951)
+++ trunk/testset/binary/debian/control 2007-10-14 23:34:16 UTC (rev 952)
@@ -10,10 +10,12 @@
Package: binary
Architecture: any
Depends: ${shlibs:Depends}, xorg, binary-data (= ${Source-Version})
+Homepage: http://lintian.debian.org/
+Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk
Description: test handling of binary files
Regression test for lintian's handling of binary files.
-Homepage: http://lintian.debian.org/
-Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk
+ .
+ Homepage: http://lintian.debian.org/
Package: binary-data
Architecture: all
Modified: trunk/testset/tags.binary
===================================================================
--- trunk/testset/tags.binary 2007-10-14 23:20:40 UTC (rev 951)
+++ trunk/testset/tags.binary 2007-10-14 23:34:16 UTC (rev 952)
@@ -35,6 +35,7 @@
E: binary: unstripped-binary-or-object ./usr/bin/hello
I: binary: arch-dep-package-has-big-usr-share
I: binary: binary-has-unneeded-section ./usr/bin/hello-static .comment
+I: binary: description-contains-homepage
I: binary: desktop-entry-contains-encoding-key ./usr/share/applications/goodbye.desktop:11 Encoding
I: binary: desktop-entry-contains-encoding-key ./usr/share/applications/hello.desktop:13 Encoding
I: binary: no-md5sums-control-file
Reply to: