summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-01-19 00:13:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:21 +0000
commit68c5e6d4d089568ab726153ea7dc217d16293c93 (patch)
tree26ad6f28692b9b830f01e38607de8766ae68f2e1 /meta/classes/insane.bbclass
parent258676bfa7f69d01ac808d357c0afe5b0e45ef3f (diff)
downloadpoky-68c5e6d4d089568ab726153ea7dc217d16293c93.tar.gz
insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
Fixed race issue when: WARN_QA_append = " buildpaths" PACKAGE_CLASSES = "package_ipk" $ bitbake e2fsprogs [snip] *** 0595: with open(path) as f: 0596: file_content = f.read() 0597: if tmpdir in file_content: 0598: messages["buildpaths"] = "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d) 0599: Exception: IOError: [Errno 2] No such file or directory: '/path/to/tmp/work/core2-64-poky-linux/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-ptest/CONTROL/control' The similar to package_deb. (From OE-Core rev: cd4313339853d2eddebf93a49d0f45a305985a31) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index f7781ce6fe..47988bd1e9 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -585,6 +585,10 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
585 if os.path.islink(path): 585 if os.path.islink(path):
586 return 586 return
587 587
588 # Ignore ipk and deb's CONTROL dir
589 if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1:
590 return
591
588 tmpdir = d.getVar('TMPDIR', True) 592 tmpdir = d.getVar('TMPDIR', True)
589 with open(path) as f: 593 with open(path) as f:
590 file_content = f.read() 594 file_content = f.read()