summaryrefslogtreecommitdiffstats
path: root/scripts/lib/compatlayer
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-03-27 11:05:30 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-29 16:37:27 +0100
commit7effe1870010fdb4b530a6a29babfe9b5ecb084f (patch)
tree1d057703309002b1066eac52b5ea4d605027a0ab /scripts/lib/compatlayer
parent1632f6623cbc617944ba304332f3a2f66ba67efe (diff)
downloadpoky-7effe1870010fdb4b530a6a29babfe9b5ecb084f.tar.gz
scripts/yocto-compat-layer.py: Add dependency validation in add_layer
Some layers don't have dependencies so add a validation to avoid exception when trying to None.split(). (From OE-Core rev: 39103285029a0bb7b64dc5a305c484988b4c651a) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/compatlayer')
-rw-r--r--scripts/lib/compatlayer/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index 435679edbf..58f94b778b 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -143,7 +143,11 @@ def add_layer(bblayersconf, layer, layers, logger):
143 logger.info('Adding layer %s' % layer['name']) 143 logger.info('Adding layer %s' % layer['name'])
144 144
145 for collection in layer['collections']: 145 for collection in layer['collections']:
146 for depend in layer['collections'][collection]['depends'].split(): 146 depends = layer['collections'][collection]['depends']
147 if not depends:
148 continue
149
150 for depend in depends.split():
147 # core (oe-core) is suppose to be provided 151 # core (oe-core) is suppose to be provided
148 if depend == 'core': 152 if depend == 'core':
149 continue 153 continue