[bitbake-devel] [RFC PATCH 3/3] ui/crumbs/[hobeventhandler|configurator]: don't use unparsed files
Joshua Lock
josh at linux.intel.com
Wed Jul 27 04:46:11 UTC 2011
Use the new field in the ConfigFilePathFound event to track whether the
hob.local.conf file was parsed when BitBake was launched.
Fixes [YOCTO #1246]
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
lib/bb/ui/crumbs/configurator.py | 8 ++++----
lib/bb/ui/crumbs/hobeventhandler.py | 6 ++++--
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/lib/bb/ui/crumbs/configurator.py b/lib/bb/ui/crumbs/configurator.py
index ec48a4f..f5eae28 100644
--- a/lib/bb/ui/crumbs/configurator.py
+++ b/lib/bb/ui/crumbs/configurator.py
@@ -115,9 +115,9 @@ class Configurator(gobject.GObject):
self.enabled_layers = copy.deepcopy(self.loaded_layers)
self.emit("layers-loaded")
- def _addConfigFile(self, path):
+ def _addConfigFile(self, path, additional):
pref, sep, filename = path.rpartition("/")
- if filename == "local.conf" or filename == "hob.local.conf":
+ if filename == "local.conf" or (filename == "hob.local.conf" and additional):
self._loadLocalConf(path)
elif filename == "bblayers.conf":
self._loadLayerConf(path)
@@ -293,8 +293,8 @@ class Configurator(gobject.GObject):
self.emit("layers-changed")
- def configFound(self, handler, path):
- self._addConfigFile(path)
+ def configFound(self, handler, path, additional):
+ self._addConfigFile(path, additional)
def loadConfig(self, path):
self._addConfigFile(path)
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 4897bcc..9cfa7c2 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -42,7 +42,8 @@ class HobHandler(gobject.GObject):
(gobject.TYPE_PYOBJECT,)),
"config-found" : (gobject.SIGNAL_RUN_LAST,
gobject.TYPE_NONE,
- (gobject.TYPE_STRING,)),
+ (gobject.TYPE_STRING,
+ gobject.TYPE_BOOLEAN)),
"generating-data" : (gobject.SIGNAL_RUN_LAST,
gobject.TYPE_NONE,
()),
@@ -150,7 +151,8 @@ class HobHandler(gobject.GObject):
self.emit("sdk-machines-updated", sdk_machines)
elif isinstance(event, bb.event.ConfigFilePathFound):
path = event._path
- self.emit("config-found", path)
+ extraconf = event._extraconf
+ self.emit("config-found", path, extraconf)
elif isinstance(event, bb.event.FilesMatchingFound):
# FIXME: hard coding, should at least be a variable shared between
# here and the caller
--
1.7.6
More information about the bitbake-devel
mailing list