[oe] return value of package_qa_check_staged in insane.bbclass

Julian julian_chu at openmoko.com
Thu May 1 20:21:21 UTC 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080502/f86dd610/attachment-0002.sig>


More information about the Openembedded-devel mailing list