]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/bb/utils: improve edit_bblayers_conf() handling of bblayers.conf formatting
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 20 Nov 2015 04:11:16 +0000 (17:11 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Dec 2015 17:00:16 +0000 (17:00 +0000)
commite9a0858023c7671e30cc8ebb08496304b7f26b31
tree29ce570d27c0e19babe608e0cb1ad73109d670f9
parent8bce6fefdc5c046b916588962a2b429c0f648133
lib/bb/utils: improve edit_bblayers_conf() handling of bblayers.conf formatting

Make the following improvements to edit_bblayers_conf():

* Support ~ in BBLAYERS entries
* Handle where BBLAYERS items are added over multiple lines with +=
  instead of one single long item

Also add some comments documenting the function arguments and return
values as well as a set of bitbake-selftest tests.

(This function is used by the bitbake-layers add, remove and
layerindex-fetch subcommands, as well as devtool when adding the
workspace layer).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/tests/utils.py
lib/bb/utils.py