[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r778 - in trunk: checks debian testset



Author: rra
Date: 2006-11-11 10:32:24 +0100 (Sat, 11 Nov 2006)
New Revision: 778

Modified:
   trunk/checks/control-file
   trunk/checks/control-file.desc
   trunk/debian/changelog
   trunk/testset/tags.empty
   trunk/testset/tags.non-us
Log:
  + [RA] Add info-level check for Section in the source section of the
    control file.  (Closes: #322244)

Modified: trunk/checks/control-file
===================================================================
--- trunk/checks/control-file	2006-11-11 09:06:05 UTC (rev 777)
+++ trunk/checks/control-file	2006-11-11 09:32:24 UTC (rev 778)
@@ -78,6 +78,8 @@
 	} else {
 		$category = '';
 	}
+} else {
+	tag "no-section-field-for-source", "";
 }
 for my $binary_control (@binary_controls) {
 	next unless $binary_control->{'section'};

Modified: trunk/checks/control-file.desc
===================================================================
--- trunk/checks/control-file.desc	2006-11-11 09:06:05 UTC (rev 777)
+++ trunk/checks/control-file.desc	2006-11-11 09:32:24 UTC (rev 778)
@@ -40,6 +40,18 @@
  file should be available in the source package under multiple names, make
  <tt>debian/control</tt> the real file and the other names symlinks to it.
 
+Tag: no-section-field-for-source
+Type: info
+Ref: policy 5.2
+Info: The package does not have a "Section:" field in the source package
+ section of its control file.
+ .
+ The Section field is optional for a source package and ignored by the
+ Debian archive software, but it's recommended by Policy and not including
+ it may cause problems if the package is ever handled by
+ archive-processing software that doesn't support pools (private archives,
+ for instance).
+
 Tag: section-category-mismatch
 Type: error
 Info: The <tt>debian/control</tt> file places the indicated binary package

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-11-11 09:06:05 UTC (rev 777)
+++ trunk/debian/changelog	2006-11-11 09:32:24 UTC (rev 778)
@@ -16,6 +16,8 @@
       different archive category from the source package or the other
       binary packages.  Idea from Yann Dirson.  (Closes: #394720)
     + [RA] Close opened files.
+    + [RA] Add info-level check for Section in the source section of the
+      control file.  (Closes: #322244)
   * checks/cruft{.desc,}:
     + [RA] Tighten the timestamp check on config.{sub,guess} to look for
       files dated 2004 or newer, since that's when x86_64 was added.
@@ -74,7 +76,7 @@
       various subdirectories of its standard search path based on hardware
       capabilities.  Reported by Aurelien Jarno.  (Closes: #396278)
 
- -- Russ Allbery <rra@debian.org>  Sat, 11 Nov 2006 01:06:00 -0800
+ -- Russ Allbery <rra@debian.org>  Sat, 11 Nov 2006 01:32:20 -0800
 
 lintian (1.23.25) unstable; urgency=low
 

Modified: trunk/testset/tags.empty
===================================================================
--- trunk/testset/tags.empty	2006-11-11 09:06:05 UTC (rev 777)
+++ trunk/testset/tags.empty	2006-11-11 09:32:24 UTC (rev 778)
@@ -5,6 +5,7 @@
 E: empty: no-copyright-file
 E: empty: package-has-no-description
 E: empty_1_i386.changes: no-description-in-changes-file
+I: empty source: no-section-field-for-source
 I: empty: no-md5sums-control-file
 W: empty source: changelog-should-mention-nmu
 W: empty source: maintainer-not-full-name empty

Modified: trunk/testset/tags.non-us
===================================================================
--- trunk/testset/tags.non-us	2006-11-11 09:06:05 UTC (rev 777)
+++ trunk/testset/tags.non-us	2006-11-11 09:32:24 UTC (rev 778)
@@ -6,6 +6,7 @@
 E: patented-app: no-copyright-file
 I: broken-crypto: no-md5sums-control-file
 I: crypto-app: no-md5sums-control-file
+I: non-us source: no-section-field-for-source
 I: nonfree-crypto-app: no-md5sums-control-file
 I: patented-app: no-md5sums-control-file
 I: patented-app: non-us-spelling



Reply to: