]> code.ossystems Code Review - openembedded-core.git/commit
yocto-compat-layer.py: avoid adding layers more than once
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 27 Jun 2017 15:33:38 +0000 (17:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Jul 2017 13:38:06 +0000 (14:38 +0100)
commit4afb7c3c505a4d21906f07f88c966b794a968cbc
tree59e3eba36193cae377b7fa68bef957b269bd1804
parent7b8ae7711273e32a187830c7fab493e6fbb065c3
yocto-compat-layer.py: avoid adding layers more than once

add_layer_dependencies() might get called more than once, or one of
the layer dependencies might already be present. The function should
not add layers again because doing so can cause warnings like:

  WARNING: Duplicate inclusion for .../meta-openembedded/meta-oe/conf/distro/include/meta_oe_security_flags.inc in .../meta-openembedded/meta-oe/conf/layer.conf

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/compatlayer/__init__.py