python/python3: use --no-run-if-empty xargs option
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 May 2016 21:19:13 +0000 (23:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 26 May 2016 20:07:11 +0000 (22:07 +0200)
commitf06f58f8fd443968942e100e3c70a29248b2f368
tree081650694c71eec144e6431b85d576b24feff434
parent7c7fe54ec2a3247f0e3a8fb8080dde06691c8fc9
python/python3: use --no-run-if-empty xargs option

As suggested by Samuel Martin, this commit adds the option
--no-run-if-empty xargs option to the "find ... | xargs ..." logic used
in the python and python3 target-finalize hooks to remove py/pyc/pyo
files. This ensures that the command doesn't fail if there are no files
matching the pattern.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python/python.mk
package/python3/python3.mk