]> code.ossystems Code Review - openembedded-core.git/commit
Two minor changes to the way python snippet expansion happens
authorChris Larson <chris_larson@mentor.com>
Tue, 30 Mar 2010 23:21:23 +0000 (16:21 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:31 +0000 (15:41 +0100)
commitd8c8612d92fd243d395c97285f8c9b5d80a93b45
treef3d3a1f7c6f030c9856ee6b3ef7f82b14e7db40e
parentf8a8ec5ceb4b5f7a03e4a0024e5fe06ec8e7ad0a
Two minor changes to the way python snippet expansion happens

- Use a single dictionary for the context, both global & local, since for some
  reason it chokes wanting a global "d" rather than a local in the metadata.
- First compile the string into a code object before running eval, so we can
  include the variable name in an evaluation error.

(Bitbake rev: 49534d928a37e0804ca84eed186cd22363023b2e)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/data_smart.py