Package: devscripts
Version: 2.10.7
Severity: normal

Hi,

I noticed that licensecheck fails parsing license information when single
line comments ("//") in Java files are used. The attached patch fixed the
issue for me.

Best regards,
Manuel


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages devscripts depends on:
ii  debianutils                   2.23.1     Miscellaneous utilities specific t
ii  dpkg-dev                      1.14.5     package building tools for Debian
ii  libc6                         2.6.1-1    GNU C Library: Shared libraries
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  sed                           4.1.5-3    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.7.1      Gives a fake root environment

-- no debconf information

--- scripts/licensecheck.pl.orig	2007-09-06 15:45:04.000000000 +0200
+++ scripts/licensecheck.pl	2007-09-06 15:46:21.000000000 +0200
@@ -287,6 +287,7 @@
     print qq(----- $file header -----\n$content----- end header -----\n\n)
 	if $opt_verbose;
 
+    $content =~ s,//, ,g;
     $content =~ tr/\t\r\n/ /;
     $content =~ tr% A-Za-z.,@;0-9\(\)\n\r/-%%cd;
     $content =~ tr/ //s;

Reply via email to