mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
![]() 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> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
||
---|---|---|
.. | ||
migrations | ||
static | ||
templatetags | ||
tools | ||
__init__.py | ||
admin.py | ||
bulkchange.py | ||
context_processors.py | ||
forms.py | ||
layerconfparse.py | ||
models.py | ||
querysethelper.py | ||
recipedesc.py | ||
recipeparse.py | ||
restperm.py | ||
restviews.py | ||
simplesearch.py | ||
tasks.py | ||
update_layer.py | ||
update.py | ||
urls_branch.py | ||
urls.py | ||
utils.py | ||
views.py |