]> code.ossystems Code Review - openembedded-core.git/commit
yocto-compat-layer.py: Fix trace when layers can't be processed
authorMark Hatle <mark.hatle@windriver.com>
Tue, 5 Sep 2017 02:10:11 +0000 (21:10 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:30:10 +0000 (17:30 +0100)
commit32c9b3d99a0c27f6736696082b9da812a8464bf8
treeec30617a737a0914e06d77234b6768327c6e6cea
parent10a1b293191268e6792ac8e27bd6427f1974c7ce
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'

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/yocto-compat-layer.py