aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/uihelper.py
AgeCommit message (Collapse)Author
2017-07-21lib/bb/ui/uihelper: indicate to caller of eventHandler() if events handledPaul Eggleton
It is useful for the caller to know whether the uihelper has handled the event passed so that it can skip other event handling code if so. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-21build/uihelper: Show better information about multiconfig tasks on UIRichard Purdie
Currently the UI shows X is building, possibly multiple times but doesn't say which of the multilibs that might be. This adds a prefix to the task name so the mulitconfig being built can be identified. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-20uihelper: use elif instead of repeated ifRoss Burton
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-19knotty: avoid errors when fetching outside of a taskPaul Eggleton
In a few places we use the fetcher code to fetch files outside of a task, for example uninative in OE. In that case the pid of the event is 0 and that was causing an error in BBUIHelper.eventHandler(). Check the pid and do nothing if it's 0. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-01lib: implement basic task progress supportPaul Eggleton
For long-running tasks where we have some output from the task that gives us some idea of the progress of the task (such as a percentage complete), provide the means to scrape the output for that progress information and show it to the user in the default knotty terminal output in the form of a progress bar. This is implemented using a new TaskProgress event as well as some code we can insert to do output scanning/filtering. Any task can fire TaskProgress events; however, if you have a shell task whose output you wish to scan for progress information, you just need to set the "progress" varflag on the task. This can be set to: * "percent" to just look for a number followed by a % sign * "percent:<regex>" to specify your own regex matching a percentage value (must have a single group which matches the percentage number) * "outof:<regex>" to look for the specified regex matching x out of y items completed (must have two groups - first group needs to be x, second y). We can potentially extend this in future but this should be a good start. Part of the implementation for [YOCTO #5383]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-29bitbake: BBUIHelper: Remove function findServerDetailsSujith H
findServerDetails function can be removed safely from the source tree. Couldn't find any files calling this function. Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-30uihelper: Set update flag when start event encounteredRichard Purdie
Its a minor correctness detail but the update flag should be set when Start events are encountered. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-16bb/ui/uihelper.py: Ensure task current and total numbers are updated for ↵Richard Purdie
setscene events too This avoids task (0 of 0) type messages being displayed during setscene by knotty2. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-29uihelper: Keep track of pids in execution orderRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-15ui/uihelper: Keep track of task numbersRichard Purdie
Add code so the uihelper keeps track of how may tasks we've run and how many tasks there are in total so UIs don't have to track this information themselves. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01bitbake/uihelper: restore line to record failed normal tasksPaul Eggleton
Save failed real (non-setscene) tasks to uihelper's failed task list. as before commit e8a3499c95a6d4f2b8fed002fb9504733c5be3c6. Currently this list is only used by the ncurses UI. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-28bitbake: fix setscene task start/failure handlingPaul Eggleton
* When a setscene task starts, print out that it's starting in the UI (ensuring we get the correct task name) * When a setscene task fails, ensure we remove it from the list of running tasks so that if you break out any time afterwards it is not still listed. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-24Hob: A new implemetation (v2)Dongxiao Xu
This commit implements a new design for hob Some of the new features: - Friendly new designed GUI. Quick response to user actions. - Two step builds support package generation and image generation. - Support running GUI seprarately from bitbake server. - Recipe/package selection and deselection. - Accurate customization for image contents and size. - Progress bars showing the parsing and build status. - Load/save user configurations from/into templates. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Fengxia Hua <fengxia.hua@intel.com> Designed-by: Belen Barros Pena <belen.barros.pena@intel.com>
2011-02-16uihelper: import bb.build, kill commented linesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Revert "build: stop injecting os/bb into __builtins__"Chris Larson
Temporary revert, will resurrect. This reverts commit 566657c13de3fefb5043b71de953fb805799da95.
2010-12-17build: stop injecting os/bb into __builtins__Chris Larson
For one, we should be able to avoid this via _context in bb.utils. For two, __builtins__ only has to exist for CPython, so this causes problems running bitbake under other python implementations (though we could change to doing setattr()s against the __builtin__ module, let's avoid this instead). Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-01-21knotty: Improve task failure message handling using the uihelper codeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-19ui: Convert remaining event handlers to use isinstanceRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2008-04-27uihelper.py: Fill out the code a bit moreRichard Purdie
2007-08-18Add the start of several UI modulesRichard Purdie