[bitbake-devel] [PATCH] utils: only add layer once in edit_bblayers_conf()
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Sep 25 13:23:16 UTC 2015
On Thursday 24 September 2015 16:02:23 Markus Lehtonen wrote:
> Prevent edit_bblayers_conf() from adding layer(s) multiple times. This
> happened when BBLAYERS variable was "listed" multiple times in
> bblayer.conf - i.e. the configuration was split into multiple separate
> assignments.
>
> [YOCTO #8316]
>
> Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
> ---
> lib/bb/utils.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/bb/utils.py b/lib/bb/utils.py
> index 91faa49..9b550ef 100644
> --- a/lib/bb/utils.py
> +++ b/lib/bb/utils.py
> @@ -1249,6 +1249,7 @@ def edit_bblayers_conf(bblayers_conf, add, remove):
> bblayers.append(addlayer)
> else:
> notadded.append(addlayer)
> + del addlayers[:]
>
> if updated:
> return (bblayers, None, 2, False)
Nice, a much simpler fix than I'd immediately assumed it would be when I read
the bug :)
Acked-by: Paul Eggleton <paul.eggleton at linux.intel.com>
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the bitbake-devel
mailing list