[pacman-dev] [PATCH] makepkg: Fix the check for references to srcdir/pkgdir in BSDs
At least in FreeBSD, find always returns 0 If It finds stuff
(imagine that). It doesn't care about the exit status of whatever is
passed to -exec.
This patch makes the checks compatible with this behaviour.
Using xargs and not using grep directly because packages with too many
files would cause grep to complain about argument list being too long.
This should also fix the false positive in packages with no files.
Signed-off-by: Nezmer
On 02/02/11 03:02, Nezmer wrote:
At least in FreeBSD, find always returns 0 If It finds stuff (imagine that). It doesn't care about the exit status of whatever is passed to -exec.
This patch makes the checks compatible with this behaviour.
Using xargs and not using grep directly because packages with too many files would cause grep to complain about argument list being too long.
This should also fix the false positive in packages with no files.
Signed-off-by: Nezmer
---
Signed-off-by: Allan
participants (2)
-
Allan McRae
-
Nezmer