* [PATCH] scripts/yocto-compat-layer.py: Add dependency validation in add_layer
@ 2017-03-27 17:05 Aníbal Limón
0 siblings, 0 replies; only message in thread
From: Aníbal Limón @ 2017-03-27 17:05 UTC (permalink / raw)
To: openembedded-core
Some layers don't have dependencies so add a validation to avoid
exception when trying to None.split().
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
---
scripts/lib/compatlayer/__init__.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index 435679e..58f94b7 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -143,7 +143,11 @@ def add_layer(bblayersconf, layer, layers, logger):
logger.info('Adding layer %s' % layer['name'])
for collection in layer['collections']:
- for depend in layer['collections'][collection]['depends'].split():
+ depends = layer['collections'][collection]['depends']
+ if not depends:
+ continue
+
+ for depend in depends.split():
# core (oe-core) is suppose to be provided
if depend == 'core':
continue
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-27 17:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-27 17:05 [PATCH] scripts/yocto-compat-layer.py: Add dependency validation in add_layer Aníbal Limón
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox