#997837 lintian ignores "Files-Included' field of debian/copyright

#997837#5
Date:
2021-10-25 16:54:17 UTC
From:
To:
Hi,

lintian follows "Files-Excluded" to display source-ships-excluded-file
tag. However, it doesn't read "Files-Included" field. Then it reports a
lot of false positive source-ships-excluded-file.

To reproduce, try https://salsa.debian.org/js-team/node-rollup-plugin-inject

Cheers,
Yadd

#997837#10
Date:
2021-10-25 18:33:36 UTC
From:
To:
Hi Yadd,

This bug brought to mind Bug#993758 from a few weeks ago, which was
about another node package. Maybe I do not understand how the fields
should interact.

All the files listed as erroneously included are located in those seven folders:

    legacy/
    packages/babel/
    packages/commonjs/
    packages/node-resolve/
    packages/pluginutils/
    packages/replace/
    packages/typescript/

But the d/copyright file has:

    Files-Excluded: *
    Files-Included: packages/inject shared util

None of the paths above appear in Files-Included, while Files-Excluded
applies to everything else. Could you try adding them?

Alternatively, please take a moment to explain to me how the fields
are supposed to work!

There is no reference implementation for DEP-5 copyrights. I wrote
Lintian's from scratch. Thanks!

Kind regards
Felix Lechner