mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
insane.bbvlass: split checks so the warnings are precise
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3478 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -351,8 +351,12 @@ def package_qa_check_staged(path,d):
|
|||||||
path = os.path.join(root,file)
|
path = os.path.join(root,file)
|
||||||
if file[-2:] == "la":
|
if file[-2:] == "la":
|
||||||
file_content = open(path).read()
|
file_content = open(path).read()
|
||||||
if installed in file_content or workdir in file_content:
|
if installed in file_content:
|
||||||
bb.error("QA issue: %s failed sanity test (reference to workdir or installed)" % file )
|
bb.error("QA issue: %s failed sanity test (installed)" % file )
|
||||||
|
if package_qa_make_fatal_error( 5, "staging", path, d):
|
||||||
|
sane = True
|
||||||
|
if workdir in file_content:
|
||||||
|
bb.error("QA issue: %s failed sanity test (reference to workdir)" % file )
|
||||||
if package_qa_make_fatal_error( 5, "staging", path, d):
|
if package_qa_make_fatal_error( 5, "staging", path, d):
|
||||||
sane = True
|
sane = True
|
||||||
elif file[-2:] == "pc":
|
elif file[-2:] == "pc":
|
||||||
|
|||||||
Reference in New Issue
Block a user