All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julian <julian_chu@openmoko.com>
To: openembedded-devel@lists.openembedded.org
Subject: return value of package_qa_check_staged in insane.bbclass
Date: Fri, 02 May 2008 04:21:21 +0800	[thread overview]
Message-ID: <481A2641.30609@openmoko.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

                 reply	other threads:[~2008-05-01 20:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=481A2641.30609@openmoko.com \
    --to=julian_chu@openmoko.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.