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

lintian: r170 - in trunk: checks testset/foo++/debian



Author: he
Date: 2004-04-17 22:55:15 +0200 (Sat, 17 Apr 2004)
New Revision: 170

Added:
   trunk/testset/foo++/debian/README.Debian
Modified:
   trunk/checks/debian-readme
Log:
Fix some dumb errors.


Modified: trunk/checks/debian-readme
===================================================================
--- trunk/checks/debian-readme	2004-04-15 23:53:11 UTC (rev 169)
+++ trunk/checks/debian-readme	2004-04-17 20:55:15 UTC (rev 170)
@@ -21,18 +21,19 @@
 
 use strict;
 
-($#ARGV == 1) or fail("syntax: copyright-file <pkg> <type>");
+($#ARGV == 1) or fail("syntax: debian-readme <pkg> <type>");
 my $pkg = shift;
 my $type = shift;
-my $readme;
+my $readme = "";
 my $template;
 
 # read the file in one go
 undef $/;
 
-open(IN,"README.Debian") or fail("cannot open README.Debian file: $!");
-$readme = <IN>;
-close(IN);
+if (open(IN,"README.Debian")) {
+    $readme = <IN>;
+    close(IN);
+}
 
 $template =
     ".* for DEBIAN\n" .

Added: trunk/testset/foo++/debian/README.Debian
===================================================================
--- trunk/testset/foo++/debian/README.Debian	2004-04-15 23:53:11 UTC (rev 169)
+++ trunk/testset/foo++/debian/README.Debian	2004-04-17 20:55:15 UTC (rev 170)
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+



Reply to: