Package: lintian
Version: 2.105.0
Severity: important

Dear maintainer,

I noticed that invoking lintian on a .dsc file in the current working
directory does not work in version 2.105.0:

$ lintian librtr_0.8.0-1.dsc
Warning in processable librtr_0.8.0-1.dsc: Use of uninitialized value $base in 
pattern match (m//) at /usr/share/lintian/lib/Lintian/Check/Fields/Source.pm 
line 54.
Warning in processable librtr_0.8.0-1.dsc: Use of uninitialized value $stem in 
string ne at /usr/share/lintian/lib/Lintian/Check/Fields/Source.pm line 56.
Warning in processable librtr_0.8.0-1.dsc: Use of uninitialized value $stem in 
concatenation (.) or string at 
/usr/share/lintian/lib/Lintian/Check/Fields/Source.pm line 56.
Warning in processable librtr_0.8.0-1.dsc: Source field does not match package 
name librtr !=  at /usr/share/lintian/lib/Lintian/Check/Fields/Source.pm line 
56.
warning: cannot run fields/source check on package source:librtr_0.8.0-1
skipping check of source:librtr_0.8.0-1

$ echo $?
1

It works as long as the path contains any `/`:

$ lintian ./librtr_0.8.0-1.dsc
$ echo $?
0

The issue seems to be a regex [1] that doesn't match an empty string
before the to be exracted basename.

Regards
Lukas

[1] 
https://salsa.debian.org/lintian/lintian/-/blob/4dafe580d8403d1ca0de7bd82184a187ada2039c/lib/Lintian/Check/Fields/Source.pm#L53

Attachment: pgppux6Rksrpe.pgp
Description: OpenPGP digital signature

Reply via email to