]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
data_smart: split expanded removal values when handling _remove
authorRoss Burton <ross.burton@intel.com>
Mon, 2 Feb 2015 15:09:25 +0000 (15:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Feb 2015 16:20:42 +0000 (16:20 +0000)
commit207013b6dde82f9654f9be996695c8335b95a288
tree32de36177b2eac3e22bea56e797b1163a5590dd1
parentcb2a62a5fbffb358528a85b46c1fc6383286cb9d
data_smart: split expanded removal values when handling _remove

Given these assignments:

 TEST="a b c d"
 TEST_remove = "b d"

TEST evaluates to "a c".  However, if the _remove override is given as a
variable:

 TEST="a b c d"
 FOO = "b d"
 TEST_remove = "${FOO}

TEST evaluates to "a b c d", because when FOO is expanded it isn't split into a
list.

Solve this by splitting all members of removeactive once they've been expanded.

[ YOCTO #7272 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/data_smart.py