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

lintian: r994 - in trunk: checks debian



Author: he
Date: 2007-11-29 14:11:53 +0100 (Thu, 29 Nov 2007)
New Revision: 994

Modified:
   trunk/checks/fields
   trunk/checks/fields.desc
   trunk/debian/changelog
Log:
  + [HE] Check for Section field in source packages, for which it
         is mandatory. Joerg Jaspert made me do this.

Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields	2007-11-29 12:07:36 UTC (rev 993)
+++ trunk/checks/fields	2007-11-29 13:11:53 UTC (rev 994)
@@ -284,7 +284,7 @@
 #---- Section
 
 if (not open (FH, '<', "fields/section")) {
-	tag "no-section-field", "" if $type eq "binary";
+	tag "no-section-field", "";
 } else {
 	my $section = <FH>;
 	close FH;

Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc	2007-11-29 12:07:36 UTC (rev 993)
+++ trunk/checks/fields.desc	2007-11-29 13:11:53 UTC (rev 994)
@@ -232,9 +232,9 @@
 Type: warning
 Info: The package does not have a `Section:' field in its control file.
  .
- The Section field can be included in a binary package by passing
- the -is or -isp flags to dpkg-gencontrol when building the package.
- The field is optional in binary packages.
+ The field is mandatory for source packages and optional for binary
+ packages, which use the source package's value as default is nothing
+ else is specified.
 Ref: policy 5.3
 
 Tag: unknown-section

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2007-11-29 12:07:36 UTC (rev 993)
+++ trunk/debian/changelog	2007-11-29 13:11:53 UTC (rev 994)
@@ -12,6 +12,8 @@
            'python-package-should-be-section-python',
            'perl-package-should-be-section-perl'. Ideas shamelessy
            stolen from linda. (Closes: #452839)
+    + [HE] Check for Section field in source packages, for which it
+           is mandatory. Joerg Jaspert made me do this.
 
   * debian/control:
     + [TK] Add Vcs-* fields to point to Lintian's repository.



Reply to: