[oe-commits] [openembedded-core] 15/62: yocto-compat-layer.py: Fix trace when layers can't be processed
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 11 16:16:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 8aee76864e47634d0c7b3835f68ce441dab4dcb9
Author: Mark Hatle <mark.hatle at windriver.com>
AuthorDate: Mon Sep 4 21:10:11 2017 -0500
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 at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/yocto-compat-layer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py
index a16974f..9a541c6 100755
--- a/scripts/yocto-compat-layer.py
+++ b/scripts/yocto-compat-layer.py
@@ -191,7 +191,7 @@ def main():
logger.info('')
for layer_name in results_status:
logger.info('%s ... %s' % (layer_name, results_status[layer_name]))
- if not results[layer_name].wasSuccessful():
+ if not results[layer_name] or not results[layer_name].wasSuccessful():
ret = 2 # ret = 1 used for initialization errors
cleanup_bblayers(None, None)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list