diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/configurator.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/configurator.py b/bitbake/lib/bb/ui/crumbs/configurator.py index e558c955b3..e17d5559ff 100644 --- a/bitbake/lib/bb/ui/crumbs/configurator.py +++ b/bitbake/lib/bb/ui/crumbs/configurator.py | |||
@@ -158,11 +158,14 @@ class Configurator(gobject.GObject): | |||
158 | def addLayerConf(self, confpath): | 158 | def addLayerConf(self, confpath): |
159 | layerpath = self._splitLayer(confpath) | 159 | layerpath = self._splitLayer(confpath) |
160 | name = self._getLayerName(layerpath) | 160 | name = self._getLayerName(layerpath) |
161 | if name not in self.enabled_layers: | 161 | |
162 | if not layerpath or not name: | ||
163 | return None, None | ||
164 | elif name not in self.enabled_layers: | ||
162 | self.addLayer(name, layerpath) | 165 | self.addLayer(name, layerpath) |
163 | return name, layerpath | 166 | return name, layerpath |
164 | else: | 167 | else: |
165 | return None, None | 168 | return name, None |
166 | 169 | ||
167 | def addLayer(self, name, path): | 170 | def addLayer(self, name, path): |
168 | self.enabled_layers[name] = path | 171 | self.enabled_layers[name] = path |