From: Robert Yang Date: Tue, 6 Oct 2015 09:18:58 +0000 (-0700) Subject: insane.bbclass: buildpaths: ignore .pyc files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a2e42949e3b3f6d18f1a72f2f870115731046e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index e3a8cd75156..664dfec50ac 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