#1079164 devscripts: Files-Excluded version of regexp should be documented and if not pcre Files-Excluded-PCRE should be created #1079164
- 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
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
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
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
For components, use "Files-Excluded-componentname"
Le jeudi 22 août 2024, 02:43:41 UTC Yadd a écrit : Yes but Files-Included-componentname does not exist
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).