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

lintian: r82 - in trunk: checks debian



Author: jeroen
Date: 2004-03-02 23:54:14 +0100 (Tue, 02 Mar 2004)
New Revision: 82

Modified:
   trunk/checks/deb-format
   trunk/debian/changelog
Log:
Fix a little formatting-issue with deb-format (double-usage of var... perl -W is rumoured to warn for that)

Modified: trunk/checks/deb-format
===================================================================
--- trunk/checks/deb-format	2004-02-27 16:15:22 UTC (rev 81)
+++ trunk/checks/deb-format	2004-03-02 22:54:14 UTC (rev 82)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! /usr/bin/perl -W
 
 # deb-format -- lintian check script
 
@@ -42,7 +42,7 @@
 my $is_long = 0;
 while (read(INPUT, $chunk, 512)) {
 	last if length($chunk) != 512;
-	my ($name, $size, $type) = unpack "A100x24A12x20A1", $chunk;
+	my ($name, $size, $htype) = unpack "A100x24A12x20A1", $chunk;
 	$size = oct($size);
 
 	if (!$is_long && length($name) == 100) {
@@ -55,7 +55,7 @@
 		print "E: $pkg $type: deb-created-with-broken-tar file: $name\n";
 	}
 
-	$is_long = $type eq 'L';
+	$is_long = $htype eq 'L';
 
 	# eat data
 	if ($size) {

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-02-27 16:15:22 UTC (rev 81)
+++ trunk/debian/changelog	2004-03-02 22:54:14 UTC (rev 82)
@@ -50,6 +50,9 @@
   * checks/debconf:
     + Update valid types, since currently 'title' is supported now too
       (Closes: #234379, #234608)
+  * checks/deb-format:
+    + Fix perl variable-name clash causing unusually formatted error output
+      (only important if you do automatic processing on it)
   * checks/filenames:
     + Revised the symlink detection stuff, it is now more rigorous, and has
       seperate warning for recursive symlinks that are otherwise not



Reply to: