summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/api.py')
-rw-r--r--bitbake/lib/toaster/toastergui/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py
index cb8f0f3127..ab6ba69e0e 100644
--- a/bitbake/lib/toaster/toastergui/api.py
+++ b/bitbake/lib/toaster/toastergui/api.py
@@ -293,14 +293,14 @@ class XhrLayer(View):
293 layer_source=LayerSource.TYPE_IMPORTED) 293 layer_source=LayerSource.TYPE_IMPORTED)
294 294
295 # Local layer 295 # Local layer
296 if 'local_source_dir' in layer_data: 296 if ('local_source_dir' in layer_data) and layer.local_source_dir:
297 layer.local_source_dir = layer_data['local_source_dir'] 297 layer.local_source_dir = layer_data['local_source_dir']
298 # git layer 298 # git layer
299 elif 'vcs_url' in layer_data: 299 elif 'vcs_url' in layer_data:
300 layer.vcs_url = layer_data['vcs_url'] 300 layer.vcs_url = layer_data['vcs_url']
301 layer_version.dirpath = layer_data['dir_path'] 301 layer_version.dirpath = layer_data['dir_path']
302 layer_version.commit = layer_data['get_ref'] 302 layer_version.commit = layer_data['git_ref']
303 layer_version.branch = layer_data['get_ref'] 303 layer_version.branch = layer_data['git_ref']
304 304
305 layer.save() 305 layer.save()
306 layer_version.save() 306 layer_version.save()