diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2018-07-06 11:09:37 +0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2018-07-09 12:06:31 +0800 |
commit | a02cf1b6d04658216eadffc817a651dc47fcfbfb (patch) | |
tree | f1a91610c448d050e34e609594fdbf43664d61bc /layerindex/recipeparse.py | |
parent | 5cfdfdca8b9200b5a6e4aa14661b14059a799310 (diff) | |
download | openembedded-core-contrib-a02cf1b6d04658216eadffc817a651dc47fcfbfb.tar.gz |
update_layer.py: avoid calling setup_core_layer_sys_path() when --initial
Fixed:
$ update.py -b <new_branch>
[snip]
NOTE: Starting bitbake server...
Traceback (most recent call last):
File "update_layer.py", line 471, in main
utils.setup_core_layer_sys_path(settings, branch.name)
File "/buildarea1/lyang1/layerindex-web/layerindex/utils.py", line 376, in setup_core_layer_sys_path
core_layerdir = os.path.join(core_repodir, core_layerbranch.vcs_subdir)
AttributeError: 'NoneType' object has no attribute 'vcs_subdir'
[snip]
This is because core_layerbranch is not in database yet for completely new
branch, so it is None and we will get the error. Avoid calling
setup_core_layer_sys_path() when "update_layer.py --initial" will fix the
problem.
And also only add core layer's sys path when it is present, since core layer
may not be added yet for completely new branch.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'layerindex/recipeparse.py')
0 files changed, 0 insertions, 0 deletions