Bug#960681: Bug#513967:l icensecheck: fails to detect license at end (option --tail is broken)

Jonas Smedegaard jonas at jones.dk
Sat Nov 20 10:15:59 GMT 2021


Hi Dominique,

Quoting Dominique Dumont (2021-11-19 18:06:00)
> On Thu, 12 Apr 2018 23:26:53 +0200 Jonas Smedegaard <dr at jones.dk> wrote:
> > It is (slower but) more reliable to use "--lines 0".
> 
> Indeed. I have a similar case with #1000179 where licensecheck does not get 
> copyright assignment from a LICENSE file:
> 
> $ licensecheck --copyright LICENSE 
> LICENSE: *No copyright* Apache License 2.0
> 
> But it gets the copyright with --lines option:
> 
> $ licensecheck --copyright LICENSE -l 0
> LICENSE: Apache License 2.0
>   [Copyright: patent, trademark, and / license to reproduce, prepare 
> Derivative Works of, / License. Subject to the terms and conditions of / 2017 
> Sourced Technologies S.L.]
> 
> Would it be possible to use --lines 0 with files containing a lot of capital 
> letters (like LICENSE.* README*) and so on... These files tend to be relatively 
> short compared to other source files.

Sounds like a bad idea to me to dynamically adapt scanning "depth" based 
on filename naming style.

You write in bug#1000179 that --lines=0
> could really slow down copyright update

I would appreciate some numbers about actual slowdown.

On a related note, it is bad style to fork general public license files 
- I have reported this incident upstream: 
https://github.com/go-git/go-billy/issues/20


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20211120/f80ef0eb/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list