pkgbuild's default filter doesn't realize it's a regular expression

Originator:durin42
Number:rdar://32437369 Date Originated:2017-05-26
Status:Open Resolved:
Product:Xcode Product Version:
Classification: Reproducible:Always
 
Summary:
pkgbuild's default filter is both not correctly documented in the man page and doesn't know it's a regular expression.

Steps to Reproduce:
1) Stage files to be in a package including a file named `chg`
2) Use `pkgbuild` without specifying `--filter` to make the package

Expected Results:
My `chg` file is in the package.

Observed Results:
`chg` is not in the package.

Version:
Every version of 10.11 and 10.12 I've tried, including the related Xcode tools. I'm submitting a patch to work around this in hg shortly, and you'll be able to observe an hg test failure soon with that patch un-done.

Notes:
The man page only mentions CVS and .svn directories, but .git and .hg are experimentally also in the default filter. So there are two bugs here:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!