diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-14 15:43:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-26 20:15:47 +0100 |
commit | 6d76379af89aafb3757d60bc67b96c6f65ca8455 (patch) | |
tree | 50e7c7b86273dd8e97a168bf9da86fe90e172316 /bitbake | |
parent | 5c3f42dbcf4d1b6ed21f50be95b4fb39eb7ae3c0 (diff) | |
download | poky-6d76379af89aafb3757d60bc67b96c6f65ca8455.tar.gz |
ui/crumbs/hobeventhandler: reparse files before running other commands
Integrate reparseFiles into the run_next_command() method rather than calling
reparseFiles on the server and immediately calling other methods.
(Bitbake rev: 20f7218992cfe18f1d3dcea53f2e5a7bf96346db)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 78a50901d5..d10c8588dc 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -61,7 +61,7 @@ class HobHandler(gobject.GObject): | |||
61 | gobject.TYPE_STRING)), | 61 | gobject.TYPE_STRING)), |
62 | } | 62 | } |
63 | 63 | ||
64 | (CFG_PATH_LOCAL, CFG_PATH_HOB, CFG_PATH_LAYERS, CFG_FILES_DISTRO, CFG_FILES_MACH, CFG_FILES_SDK, FILES_MATCH_CLASS, GENERATE_TGTS) = range(8) | 64 | (CFG_PATH_LOCAL, CFG_PATH_HOB, CFG_PATH_LAYERS, CFG_FILES_DISTRO, CFG_FILES_MACH, CFG_FILES_SDK, FILES_MATCH_CLASS, GENERATE_TGTS, REPARSE_FILES) = range(9) |
65 | 65 | ||
66 | def __init__(self, taskmodel, server): | 66 | def __init__(self, taskmodel, server): |
67 | gobject.GObject.__init__(self) | 67 | gobject.GObject.__init__(self) |
@@ -110,6 +110,9 @@ class HobHandler(gobject.GObject): | |||
110 | self.emit("data-generated") | 110 | self.emit("data-generated") |
111 | self.generating = False | 111 | self.generating = False |
112 | self.current_command = None | 112 | self.current_command = None |
113 | elif self.current_command == self.REPARSE_FILES: | ||
114 | self.current_command = self.CFG_PATH_LAYERS | ||
115 | self.server.runCommand(["reparseFiles"]) | ||
113 | 116 | ||
114 | def handle_event(self, event, running_build, pbar): | 117 | def handle_event(self, event, running_build, pbar): |
115 | if not event: | 118 | if not event: |
@@ -195,8 +198,7 @@ class HobHandler(gobject.GObject): | |||
195 | img = self.model.selected_image | 198 | img = self.model.selected_image |
196 | selected_packages, _ = self.model.get_selected_packages() | 199 | selected_packages, _ = self.model.get_selected_packages() |
197 | self.emit("reload-triggered", img, " ".join(selected_packages)) | 200 | self.emit("reload-triggered", img, " ".join(selected_packages)) |
198 | self.server.runCommand(["reparseFiles"]) | 201 | self.current_command = self.REPARSE_FILES |
199 | self.current_command = self.CFG_PATH_LAYERS | ||
200 | self.run_next_command() | 202 | self.run_next_command() |
201 | 203 | ||
202 | def set_bbthreads(self, threads): | 204 | def set_bbthreads(self, threads): |