packaged-staging: Make setting PSTAGING_ACTIVE be a named python func
commit9a0e95f37639d9856ad41b8fc301f9b00369a797
authorTom Rini <tom_rini@mentor.com>
Wed, 28 Jul 2010 02:09:44 +0000 (27 19:09 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 28 Jul 2010 02:09:44 +0000 (27 19:09 -0700)
treece7d8ac670d70a0d6be0a53f56cccbe647076d15
parentef1eb7cdc96e74926d8e7e3d9468fb40cfb62c71
packaged-staging: Make setting PSTAGING_ACTIVE be a named python func

When the function to set PSTAGING_ACTIVE is an anon python function
overrides are not set so we cannot set things to disabled in the context
of BBCLASSEXTEND recipes.  Call this function before we check
PSTAGING_ACTIVE.  In the case of packagedstaging_fastpath it's cleaner
to convert to a full python function.  While we're in here drop a
duplicate test in populate_sysroot_postamble and make do_package_stage
check PSTAGING_ACTIVE for == 0 rather than != 1, like the rest of the
functions do.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/packaged-staging.bbclass