#1079164 devscripts: Files-Excluded version of regexp should be documented and if not pcre Files-Excluded-PCRE should be created

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Bastien Roucariès
Date:
2024-08-22 08:45:02 UTC
Severity:
normal
#1079164#5
Date:
2024-08-20 18:50:20 UTC
From:
To:
Dear Maintainer,

I do not find the syntax of the regex used by  Files-Excluded.

I suppose it is POSIX RE.

It should be documented if it is the case

If it is not PCRE could be possible to add a  Files-Excluded-PCRE field ? It
will greatly help to remove all directory except one
in case of JS monorep

Rouca

#1079164#12
Date:
2024-08-21 11:07:17 UTC
From:
To:
Drive by remark, it uses the DEP-5 `Files` semantics (that is, not a
regex at all). For the use-case you have, I think you want to combine
`Files-Excluded` with `Files-Included`.

That was what I had for this bug.

Best regards,
Niels

#1079164#17
Date:
2024-08-21 22:06:16 UTC
From:
To:
Le mercredi 21 août 2024, 11:07:17 UTC Niels Thykier a écrit :
No it is does not work:
- Files-Included is not documented
- Does not work with component

Files-Included-PCRE per component may be better I believe

#1079164#22
Date:
2024-08-22 02:43:41 UTC
From:
To:
For components, use "Files-Excluded-componentname"
#1079164#27
Date:
2024-08-22 07:03:38 UTC
From:
To:
Le jeudi 22 août 2024, 02:43:41 UTC Yadd a écrit :

Yes but Files-Included-componentname does not exist

#1079164#32
Date:
2024-08-22 08:41:27 UTC
From:
To:
Bastien Roucariès:
to finding it via man pages of "obscure" tools" (see screenshot)? :)

The code does support a Files-Included per component like it has with
Files-Excluded.

Best regards,
Niels

PS: I agree that mk-origtargz's documentation could be expanded on the
Files-Included part to explicitly list it also supports a "per
component". I suppose patches is welcome.

Personally, I was also not expecting to find it in mk-origtargz (I did
not know of mk-origtargz's involvement until I had to write these editor
docs).