Package: licenserecon
Version: 11.0
Severity: normal

Dear Maintainer,

According to the comment in /usr/share/lrc/lrc.config:

> # Directories identified by trailing slash /
> # Entire contents will be (recursively) excluded.
> debian/patches/

directories listed in debian/lrc.config should be excluded recursively.
In practice, only files directly in the listed directory are excluded,
files in subdirectories are not.

Here is a minimal example to reproduce the issue:

──────────────────────────────────────────────────
File: ./debian/copyright
──────────────────────────────────────────────────
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: examples/*
License: Expat
──────────────────────────────────────────────────
──────────────────────────────────────────────────
File: ./debian/lrc.config
──────────────────────────────────────────────────
examples/
──────────────────────────────────────────────────
──────────────────────────────────────────────────
File: ./examples/subdir/foo
──────────────────────────────────────────────────
// SPDX-License-Identifier: Apache-2.0
──────────────────────────────────────────────────
──────────────────────────────────────────────────
File: ./examples/foo
──────────────────────────────────────────────────
// SPDX-License-Identifier: Apache-2.0
──────────────────────────────────────────────────

Running lrc in this directory produces:

  en: Versions: licenserecon '11.0'  licensecheck '3.3.9-1ubuntu2'

  Parsing Source Tree  ....
  Reading d/copyright  ....
    Missing Files: Paragraph for debian/
  Running licensecheck ....

  d/copyright      | licensecheck

  Expat            | Apache-2.0        examples/subdir/foo

The file 'examples/foo' is ignored as expected, but the file in the
subdirectory is not.

It would be very helpful if lrc could actually ignore directories
recursively.

Cheers,
Adrian

Reply via email to