From 18a2e42949e3b3f6d18f1a72f2f870115731046e Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 6 Oct 2015 02:18:58 -0700 Subject: insane.bbclass: buildpaths: ignore .pyc files The .pyc files usually contain build path like: i586-poky-linux-gcc -m32 -march=i586 --sysroot=/buildarea/lyang1/test_p/tmp/sysroots/qemux86 And: _PYTHON_PROJECT_BASE=/buildarea/lyang1/test_p/tmp/work/i586-poky-linux/python/2.7.9-r1/build They are safe, so ignore them. This can reduce 1065 QA issues for buildpaths in a world build. [YOCTO #8446] Signed-off-by: Robert Yang --- meta/classes/insane.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index e3a8cd7515..664dfec50a 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -576,6 +576,10 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): if path.find(".debug") != -1: return + # Ignore .pyc files, not interesting + if path.endswith(".pyc"): + return + # Ignore symlinks if os.path.islink(path): return -- cgit 1.2.3-korg