utils: only add layer once in edit_bblayers_conf()
PATCH 1/1 utils: only add layer once in edit_bblayers_conf()
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 <[email protected]>
--- lib/bb/utils.py | 1 + 1 file changed, 1 insertion(+)
lib/bb/utils.py +1 -0
@@ -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)
Signature · 1 line
2.1.4
Quoted 17 lines · 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 <[email protected]>--- lib/bb/utils.py | 1 + 1 file changed, 1 insertion(+)lib/bb/utils.py +0
-0
lib/bb/utils.py def edit_bblayers_conf(bblayers_conf, add, remove): · line 1255
Quoted 7 lines
lib/bb/utils.py +1
-0@@ -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 <[email protected]>
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre