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

Bug#513795: "Use of uninitialized value $_ in pattern match" with lintian 2.2.1



On Sun, 2009-02-01 at 11:52 +0100, Giuseppe Iuculano wrote:
> with lintian 2.2.1 I have this error (and false warnings):

The warnings are a result of the perl errors - the pattern matching
fails, so lintian thinks various pieces of information are missing.

> # lintian -iIvE --pedantic \
> # /var/cache/pbuilder/result/unstable/gsmartcontrol_0.8.3-1_i386.changes 
[...]
> N: Processing binary package gsmartcontrol (version 0.8.3-1) ...
> W: gsmartcontrol: copyright-refers-to-versionless-license-file
> usr/share/common-licenses/GPL
[...]
> Use of uninitialized value $_ in pattern match (m//) at
> /usr/share/lintian/checks/copyright-file line 165.
> Use of uninitialized value $_ in pattern match (m//) at
> /usr/share/lintian/checks/copyright-file line 170.

It took me a while to figure out what was going on here (particularly as
it only manifests itself with -i and only in circumstances that most of
the check scripts won't hit), but the fix turned out to be very simple. 

I've committed the fix to our repository; thanks for the report.

Regards,

Adam



Reply to: