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

Re: lintian: r44 - in trunk: checks debian



On Mon, Feb 16, 2004 at 09:37:06PM +0100, jeroen@wolffelaar.nl wrote:
[...]
> (Denis Barbier's version had a little bit needless complexity,

Fortunately you did not read previous versions ;)

> and a small bug (didn't detect 0-size files)).

Nope, it was detected.  Anyway your version is indeed much simpler, but
you removed the leading slash Marc added to output.  IMO a better output
is to remove the leading dot, here is a patch.

Denis
Index: deb-format
===================================================================
--- deb-format	(revision 44)
+++ deb-format	(working copy)
@@ -48,6 +48,8 @@
 	if (!$is_long && length($name) == 100) {
 		# This should have been a LongLink, as now the filename isn't
 		# NUL-terminated, as dpkg -i expects.
+		# Remove the leading dot 
+		$name =~ s/^\.//;
 		print "E: $pkg $type: deb-created-with-broken-tar file: $name\n";
 	}
 

Reply to: