summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2008-01-13 16:58:42 +0000
committerRoss Burton <ross@openedhand.com>2008-01-13 16:58:42 +0000
commitdad7da82908f779afe6a75ebcee8569a52758e5d (patch)
tree2a4ba5f532b427c61a4ac3d0c95183deb0ca2290 /meta/classes
parent8269ce48c5832536a385789b0843068fabe6a94a (diff)
downloadpoky-dad7da82908f779afe6a75ebcee8569a52758e5d.tar.gz
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
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index bc72ea5b3b..e0223f12c4 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -351,8 +351,12 @@ def package_qa_check_staged(path,d):
351 path = os.path.join(root,file) 351 path = os.path.join(root,file)
352 if file[-2:] == "la": 352 if file[-2:] == "la":
353 file_content = open(path).read() 353 file_content = open(path).read()
354 if installed in file_content or workdir in file_content: 354 if installed in file_content:
355 bb.error("QA issue: %s failed sanity test (reference to workdir or installed)" % file ) 355 bb.error("QA issue: %s failed sanity test (installed)" % file )
356 if package_qa_make_fatal_error( 5, "staging", path, d):
357 sane = True
358 if workdir in file_content:
359 bb.error("QA issue: %s failed sanity test (reference to workdir)" % file )
356 if package_qa_make_fatal_error( 5, "staging", path, d): 360 if package_qa_make_fatal_error( 5, "staging", path, d):
357 sane = True 361 sane = True
358 elif file[-2:] == "pc": 362 elif file[-2:] == "pc":