summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-05-23 23:19:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 11:26:55 +0100
commit9e6d1101b46089c1c6749f985ecdc1cb0ef87ac8 (patch)
treeb14be923a5e2dca2096e91969dd8bc6ac80a1836 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parent2bddf70a846320241ce9a94399e74a718519dcd8 (diff)
downloadpoky-9e6d1101b46089c1c6749f985ecdc1cb0ef87ac8.tar.gz
Hob: Adjust the progress bar and set 100% only when all is done.
After parsing recipes, Hob will populate recipes and packages, which is probably time exhaused. So, this patch is to adjust the progress bar and ensure 100% is set if and only if all populations are done. The patch also fixes "weird 18 second delay when parsing recipes" on build appliance. Because Hob is doing something, but the progress bar shows 100% and wait there. [Yocto #2341] (Bitbake rev: 2c4a21dc8a588c8cf05549ddd9734731a46bea10) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 624d7b55f3..424bcfa525 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -57,6 +57,12 @@ class HobHandler(gobject.GObject):
57 "parsing-completed" : (gobject.SIGNAL_RUN_LAST, 57 "parsing-completed" : (gobject.SIGNAL_RUN_LAST,
58 gobject.TYPE_NONE, 58 gobject.TYPE_NONE,
59 (gobject.TYPE_PYOBJECT,)), 59 (gobject.TYPE_PYOBJECT,)),
60 "recipe-populated" : (gobject.SIGNAL_RUN_LAST,
61 gobject.TYPE_NONE,
62 ()),
63 "package-populated" : (gobject.SIGNAL_RUN_LAST,
64 gobject.TYPE_NONE,
65 ()),
60 } 66 }
61 67
62 (GENERATE_CONFIGURATION, GENERATE_RECIPES, GENERATE_PACKAGES, GENERATE_IMAGE, POPULATE_PACKAGEINFO, SANITY_CHECK) = range(6) 68 (GENERATE_CONFIGURATION, GENERATE_RECIPES, GENERATE_PACKAGES, GENERATE_IMAGE, POPULATE_PACKAGEINFO, SANITY_CHECK) = range(6)
@@ -158,6 +164,7 @@ class HobHandler(gobject.GObject):
158 164
159 if isinstance(event, bb.event.PackageInfo): 165 if isinstance(event, bb.event.PackageInfo):
160 self.package_model.populate(event._pkginfolist) 166 self.package_model.populate(event._pkginfolist)
167 self.emit("package-populated")
161 self.run_next_command() 168 self.run_next_command()
162 169
163 elif isinstance(event, bb.event.SanityCheckPassed): 170 elif isinstance(event, bb.event.SanityCheckPassed):
@@ -171,6 +178,7 @@ class HobHandler(gobject.GObject):
171 self.current_phase = "data generation" 178 self.current_phase = "data generation"
172 if event._model: 179 if event._model:
173 self.recipe_model.populate(event._model) 180 self.recipe_model.populate(event._model)
181 self.emit("recipe-populated")
174 elif isinstance(event, bb.event.ConfigFilesFound): 182 elif isinstance(event, bb.event.ConfigFilesFound):
175 self.current_phase = "configuration lookup" 183 self.current_phase = "configuration lookup"
176 var = event._variable 184 var = event._variable