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

lintian: r727 - in trunk: checks debian frontend



Author: jeroen
Date: 2006-08-21 18:45:58 +0200 (Mon, 21 Aug 2006)
New Revision: 727

Modified:
   trunk/checks/lintian.desc
   trunk/debian/changelog
   trunk/frontend/lintian
Log:
* frontend/lintian:
  + [JvW] Give error if there is no "Description" field in .changes, this is
    required by dak


Modified: trunk/checks/lintian.desc
===================================================================
--- trunk/checks/lintian.desc	2006-08-20 02:59:09 UTC (rev 726)
+++ trunk/checks/lintian.desc	2006-08-21 16:45:58 UTC (rev 727)
@@ -2,6 +2,11 @@
 Info: this description file is a special case: it contains the tag info
  for the tags produced by the lintian frontend itself
 
+Tag: no-description-in-changes-file
+Type: error
+Info: There is no "Description" field in your .changes file
+ A description is mandatory
+
 Tag: bad-distribution-in-changes-file
 Type: error
 Info: You've specified an unknown `target distribution' for your upload in

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-08-20 02:59:09 UTC (rev 726)
+++ trunk/debian/changelog	2006-08-21 16:45:58 UTC (rev 727)
@@ -86,6 +86,10 @@
   * debian/copyright:
     + [RA] Add Subversion repository location.
 
+  * frontend/lintian:
+    + [JvW] Give error if there is no "Description" field in .changes, this is
+      required by dak
+
   * frontend/lintian-info:
     + [RA] Add the -t or --tags option that, given a tag name, prints out
       the description.  (Closes: #376109)

Modified: trunk/frontend/lintian
===================================================================
--- trunk/frontend/lintian	2006-08-20 02:59:09 UTC (rev 726)
+++ trunk/frontend/lintian	2006-08-21 16:45:58 UTC (rev 727)
@@ -623,6 +623,12 @@
 	    }
 
 	    Tags::set_pkg( $arg, $arg_name, "", "", 'binary' );
+
+	    # Description is mandated by dak
+	    if (!$data->{'description'}) {
+		tag("no-description-in-changes-file");
+	    }
+
 	    # check distribution field
 	    if (! (($data->{'distribution'} eq 'stable')
 		  or ($data->{'distribution'} eq 'testing')



Reply to: