]> code.ossystems Code Review - openembedded-core.git/commit
classes/externalsrc: handle if cleandirs contains python expressions
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 4 Apr 2018 11:02:35 +0000 (23:02 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Apr 2018 13:48:58 +0000 (14:48 +0100)
commit611cee69d7300a4746edd752c9557af60e7beecc
treedf952fbd7424bf700f8b6953d2e06dc6fcdd04cc
parentc168f6fe35ada66f7d6d6b5151fa248230c38676
classes/externalsrc: handle if cleandirs contains python expressions

Use the existing oe.recipeutils.split_var_value() function to split the
unexpanded value of the cleandirs varflag, in case it contains python
expressions - we don't want to split the expression itself as the chunks
will not expand properly individually and we can miss something that
expands to the source tree (and thus it can get deleted, the avoidance
of which is the whole point of this code).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass