[OE-core] [PATCH RFC] pixbufcache: Use sceneQueueComplete event to simplify usage
Burton, Ross
ross.burton at intel.com
Mon Sep 1 15:35:59 UTC 2014
On 2 August 2014 09:54, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -324,6 +326,15 @@ python base_eventhandler() {
> e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++")
> e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs")
>
> + if isinstance(e, bb.runqueue.sceneQueueComplete):
> + pbfile = e.data.expand("${STAGING_DIR}/needpixbuf")
> + if os.path.exists(pbfile):
> + bb.build.exec_func("gdkpixbuf_complete", e.data)
> + os.remove(pbfile)
I'm really not keen on base.bbclass having gdk-pixbuf specific
knowledge - the problem isn't specific to gdk-pixbuf, it's just
obvious there.
Ross
More information about the Openembedded-core
mailing list