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