]> 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, 27 Jul 2017 21:35:02 +0000 (22:35 +0100)
commit9821cec1ca52deee444ae3ff14dc548c8312ba3c
tree63c56c6b0789489d36b2fee6033a0557f7c4c552
parent2df99a0cddf60944ee9e5065d693cea03f5e93b3
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/compatlayer/__init__.py