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

lintian: r206 - in branches/1.23.0: checks debian



Author: jeroen
Date: 2004-04-22 12:51:57 +0200 (Thu, 22 Apr 2004)
New Revision: 206

Modified:
   branches/1.23.0/checks/debhelper
   branches/1.23.0/checks/debhelper.desc
   branches/1.23.0/debian/changelog
Log:
checks/debhelper{,.desc}:
+ [JvW] Add error if debian/compat is empty, happens once in current
  sid and gave internal error before


Modified: branches/1.23.0/checks/debhelper
===================================================================
--- branches/1.23.0/checks/debhelper	2004-04-22 09:50:01 UTC (rev 205)
+++ branches/1.23.0/checks/debhelper	2004-04-22 10:51:57 UTC (rev 206)
@@ -113,14 +113,17 @@
     } elsif ($file =~ m/^compat$/) {
 	open IN, "debfiles/$file"
 	    or fail("Can't open debfiles/$file: $!");
-	chomp($compat = <IN>);
+	$compat = <IN>;
 	close IN;
 	if ($compat) {
+	    chomp $compat;
 	    if ($needversiondepends) {
 		print "E: $pkg $type: declares-possibly-conflicting-debhelper-compat-versions $needversiondepends $compat\n";
 	    } else {
 		$needversiondepends = $compat;
 	    }
+	} else {
+	    print "E: $pkg $type: debhelper-compat-file-is-empty\n";
 	}
     } elsif ($file =~ m/^control$/) {
 	open(IN,"debfiles/$file")

Modified: branches/1.23.0/checks/debhelper.desc
===================================================================
--- branches/1.23.0/checks/debhelper.desc	2004-04-22 09:50:01 UTC (rev 205)
+++ branches/1.23.0/checks/debhelper.desc	2004-04-22 10:51:57 UTC (rev 206)
@@ -58,6 +58,13 @@
  .
  Please refer to the dh_suidregister(1) manual page for more information.
 
+Tag: debhelper-compat-file-is-empty
+Type: error
+Info: The source package has an empty debian/compat file. This is an error,
+ the compat level of debhelper should be in there.
+ .
+ Please refer to the debhelper(7) manual page for more information.
+
 Tag: declares-possibly-conflicting-debhelper-compat-versions
 Type: error
 Info: The source package declares the debhelper compatibility version

Modified: branches/1.23.0/debian/changelog
===================================================================
--- branches/1.23.0/debian/changelog	2004-04-22 09:50:01 UTC (rev 205)
+++ branches/1.23.0/debian/changelog	2004-04-22 10:51:57 UTC (rev 206)
@@ -211,10 +211,12 @@
       output (only important if you do automatic processing on it)
     + [FL] The current script is by Denis Barbier, correcting author in
       .desc file
-  * checks/debhelper.desc:
+  * checks/debhelper{,.desc}:
     + [FL] correct reference to debhelper manpage. It's debhelper(7), not
       debhelper(1). Thanks to Brian Nelson for pointing this out
       (Closes: #188245)
+    + [JvW] Add error if debian/compat is empty, happens once in current
+      sid and gave internal error before
   * checks/debconf:
     + [JvW] Update valid types, since currently 'title' is supported now too
       (Closes: #234379, #234608)



Reply to: