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

lintian: r98 - in trunk: checks debian



Author: jeroen
Date: 2004-03-08 01:14:00 +0100 (Mon, 08 Mar 2004)
New Revision: 98

Modified:
   trunk/checks/scripts
   trunk/debian/changelog
Log:
checks/scripts:
+ Tighten up mknod, dpkg --print-architecture and killall detection in
  maintainer scripts, would need rewrite to be really sane
  (Closes: #148548, #161820, #192300)


Modified: trunk/checks/scripts
===================================================================
--- trunk/checks/scripts	2004-03-07 23:54:04 UTC (rev 97)
+++ trunk/checks/scripts	2004-03-08 00:14:00 UTC (rev 98)
@@ -373,20 +373,20 @@
 		unless $warned_tmp;
 	    $warned_tmp = 1;
 	}
-	if (m/\bkillall\b/) {
+	if (m/^\s*killall(?:\s|$)/) {
 	    print "W: $pkg $type: killall-is-dangerous $file:$.\n"
 		unless $warned_killall;
 	    $warned_killall = 1;
 	}
-	if (m/\bdpkg\s+--print-architecture\b/) {
+	if (m/^\s*dpkg\s+--print-architecture\b/) {
 	    print "W: $pkg $type: dpkg-print-architecture-in-maintainer-script $file:$.\n";
 	}
-	if (m/\bmknod\b/ and not m/\sp\s/) {
+	if (m/^\s*mknod(?:\s|$)/ and not m/\sp\s/) {
 	    print "W: $pkg $type: mknod-in-maintainer-script $file:$.\n";
 	}
 
 	if ($shellscript) {
-	    if (m/(?:^|\s+)cat\s*\<\<\s*(\w+)/) {
+	    if (m/^\s*cat\s*\<\<\s*(\w+)/) {
 		$cat_string = $1;
 	    }
 	    elsif ($cat_string ne "" and m/^$cat_string/) {
@@ -512,3 +512,5 @@
     close IN;
     return $ret;
 }
+
+# vim: ts=8 sw=4

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-03-07 23:54:04 UTC (rev 97)
+++ trunk/debian/changelog	2004-03-08 00:14:00 UTC (rev 98)
@@ -85,6 +85,10 @@
     + Test syntax of Uploaders: too
     + Don't consider depending on coreutils bad, as this is in a way a
       versioned depend (Closes: #216536)
+  * checks/scripts:
+    + Tighten up mknod, dpkg --print-architecture and killall detection in
+      maintainer scripts, would need rewrite to be really sane
+      (Closes: #148548, #161820, #192300)
 
  -- Frank Lichtenheld <djpig@debian.org>  Mon,  8 Mar 2004 00:46:15 +0100
 



Reply to: