Bug#880556: parse upstream metadata files like package.json or .gemspec files

Andrej Shadura andrew.shadura at collabora.co.uk
Tue Dec 15 12:37:22 GMT 2020


On 13/12/2020 15:43, Dominique Dumont wrote:
> Hi
> 
> Sorry for the delay.
> 
> On Sat, 12 Dec 2020 19:38:14 +0100 Andrej Shadura 
> <andrew.shadura at collabora.co.uk> wrote:
>>> Have you had a chance to have a look at it? :)
> 
> That's a good start. At least, this patch tells me how to retrieve the 
> relevant information from the toml file.

> However, your patch implies that the information from toml file applies to all 
> files that do not have a copyright header. This is often correct, except when a 
> directory is a component from another author.

> I think it would be better to treat toml data like the information contained 
> in the main README file (if present). I.e as a hint for the top directory.

> I'll change your patch to that effect.

> Do you have an example of a rust package that I could add in my test suite ?

In Rust crates most often upstream authors only put copyright and
licensing information into Cargo.toml only and rarely add them to the
sources unless they come from elsewhere. The issue with this is that the
information about the years is usually missing.

I don’t think I’m aware of the distinction between a hint and what I
did: I thought that '.*' basically was a hint of a sort :)

I guess almost any Rust package in Debian could serve as an example, but
let’s say this one is quite typical:

https://sources.debian.org/src/rust-num-traits/0.2.14-1/

-- 
Cheers,
  Andrej



More information about the pkg-perl-maintainers mailing list