Skip to contentSkip to conversation

return value of package_qa_check_staged in insane.bbclass

DISCUSSION Julian 1 participant 1 message May 1, 2008

lore
Share & tools
lore

Julian

author
#0 lore raw

Hi all,

I got confused with the return value of package_qa_check_staged

the code in insane.bbclass is

if not package_qa_check_staged(bb.data.getVar('STAGING_LIBDIR',d,True), d):
bb.fatal("QA staging was broken by the package built above")

if return false, it cause a fatal, but in the body of the function the return value was came from the LATEST one.

for example, if there are two sanity test fail.
the first one is "installed", sane = True
the second one is "tmpdir", sane = False
finally it return False and cause fatal.

but if the checking order changed, it return True and doesn't cause fatal.

it confused me, is anything wrong ?

Thanks :-)

-Julian