summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2017-09-04 21:10:11 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-11 17:30:28 +0100
commit7b53ae2c73d33f1f540b8092fc06dca2b6604830 (patch)
tree7718d22080dd279fd2e8e7f6caf598233dc49cd6 /scripts
parentcb91b0eacd833b801732e177b734a756d9e0ae8f (diff)
downloadpoky-7b53ae2c73d33f1f540b8092fc06dca2b6604830.tar.gz
yocto-compat-layer.py: Fix trace when layers can't be processed
When all of the requested layers have unsatisfied dependencies, an error can occur. Check for the condition to avoid the traceback: Traceback (most recent call last): File "../scripts/yocto-compat-layer.py", line 203, in <module> ret = main() File "../scripts/yocto-compat-layer.py", line 194, in main if not results[layer_name].wasSuccessful(): AttributeError: 'NoneType' object has no attribute 'wasSuccessful' (From OE-Core rev: 32c9b3d99a0c27f6736696082b9da812a8464bf8) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/yocto-compat-layer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py
index a16974f98f..9a541c66e5 100755
--- a/scripts/yocto-compat-layer.py
+++ b/scripts/yocto-compat-layer.py
@@ -191,7 +191,7 @@ def main():
191 logger.info('') 191 logger.info('')
192 for layer_name in results_status: 192 for layer_name in results_status:
193 logger.info('%s ... %s' % (layer_name, results_status[layer_name])) 193 logger.info('%s ... %s' % (layer_name, results_status[layer_name]))
194 if not results[layer_name].wasSuccessful(): 194 if not results[layer_name] or not results[layer_name].wasSuccessful():
195 ret = 2 # ret = 1 used for initialization errors 195 ret = 2 # ret = 1 used for initialization errors
196 196
197 cleanup_bblayers(None, None) 197 cleanup_bblayers(None, None)