generic-poky/bitbake
Richard Purdie 122079e9b0 bitbake: data_smart: Fix an unusual variable reference bug
If you try:

Y = ""
Y_remove = "X"

in OE-Core, bitbake will crash with a KeyError during expansion. The reason
is that no expansion of the empty value is attempted but removal from is it
and hence no varparse data is present for it in the expand_cache.

If the value is empty, there is nothing to remove so the best fix is simply
not to check for None but check it has any value.

Also add a test for this error so it doesn't get reintroduced.

(Bitbake rev: af3ce0fc0280e6642fa35de400f75fdbabf329b1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-21 16:47:01 +01:00
..
bin bitbake: bitbake: Bump version to 1.23.1 2014-05-01 22:47:58 +01:00
contrib bitbake: newbb.vim: fix spelling 2013-11-12 17:01:37 +00:00
doc bitbake: fetch2/gitsm: Documentation improvements for gitsm:// fetcher 2014-05-19 12:04:34 +01:00
lib bitbake: data_smart: Fix an unusual variable reference bug 2014-05-21 16:47:01 +01:00
meta/lib/oeqa/selftest bitbake: toaster: toaster oe-selftest support 2014-05-21 16:47:01 +01:00
AUTHORS misc: Update the email address to a working one. 2011-01-04 14:36:54 +00:00
COPYING bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
ChangeLog *: Fix typo in documentation 2010-08-04 16:12:39 +01:00
HEADER bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
LICENSE bitbake: toaster: adding frameworks for the Simple UI 2013-10-18 11:13:49 +01:00