[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5372/8267] scripts/yocto-compat-layer.py: Add dependency validation in add_layer
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5372/8267] scripts/yocto-compat-layer.py: Add dependency validation in add_layer
- Date: Sun, 17 Dec 2017 03:20:52 +0000 (UTC)
commit 7effe1870010fdb4b530a6a29babfe9b5ecb084f
Author: Aníbal Limón <anibal limon linux intel com>
Date: Mon Mar 27 11:05:30 2017 -0600
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>
scripts/lib/compatlayer/__init__.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]