generic-poky/bitbake/lib/bb/ui/crumbs
Christopher Larson c1c20c02a0 bitbake: command: add error to return of runCommand
Currently, command.py can return an error message from runCommand, due to
being unable to run the command, yet few of our UIs (just hob) can handle it
today. This can result in seeing a TypeError with traceback in certain rare
circumstances.

To resolve this, we need a clean way to get errors back from runCommand,
without having to isinstance() the return value. This implements such a thing
by making runCommand also return an error (or None if no error occurred).

As runCommand now has a method of returning errors, we can also alter the
getCmdLineAction bits such that the returned value is just the action, not an
additional message. If a sync command wants to return an error, it raises
CommandError(message), and the message will be passed to the caller
appropriately.

Example Usage:

    result, error = server.runCommand(...)
    if error:
        log.error('Unable to run command: %s' % error)
        return 1

(Bitbake rev: 717831b8315cb3904d9b590e633000bc897e8fb6)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-01 11:46:22 +00:00
..
__init__.py bitbake/crumbs: update documentation header 2011-02-24 15:54:52 +00:00
builddetailspage.py bitbake: hob: add a progress indicator when you select 'view log' 2012-10-27 09:55:54 +01:00
builder.py bitbake: hob: providing details about process state through porgress bar 2012-11-01 11:46:22 +00:00
buildmanager.py Drop a couple usages of readlines 2010-07-02 15:41:37 +01:00
hig.py bitbake: hob: reordering the layers in the Hob Layers dialog 2012-10-27 09:55:55 +01:00
hobcolor.py Hob: some color style changes to make HobTabBar more close to visual design 2012-03-29 21:25:55 +01:00
hobeventhandler.py bitbake: command: add error to return of runCommand 2012-11-01 11:46:22 +00:00
hoblistmodel.py bitbake: hob-toolchain: task-core-standalone-sdk-target renamed to packagegroup-core-standalone-sdk-target 2012-10-10 15:06:12 +01:00
hobpages.py bitbake: hob/hobpages: Generate the title label every time 2012-10-02 17:19:28 +01:00
hobthreads.py bitbake: hob: add a progress indicator when you select 'view log' 2012-10-27 09:55:54 +01:00
hobwidget.py bitbake: bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly 2012-10-24 21:13:07 +01:00
imageconfigurationpage.py bitbake: hob: providing details about process state through porgress bar 2012-11-01 11:46:22 +00:00
imagedetailspage.py bitbake: hob: add a progress indicator when you select 'view log' 2012-10-27 09:55:54 +01:00
packageselectionpage.py bitbake: hob: add a progress indicator when you select 'view log' 2012-10-27 09:55:54 +01:00
persistenttooltip.py Hob: add original url show function with the tooltip hyperlink for user 2012-05-09 21:56:46 +01:00
progress.py bitbake: progress.py: Fix traceback when running goggle ui 2012-09-24 15:35:31 +01:00
progressbar.py bitbake: hob: stop build without percentage shown 2012-10-24 21:13:07 +01:00
puccho.glade bitbake: Switch to bitbake-dev version (bitbake master upstream) 2010-01-20 18:46:02 +00:00
recipeselectionpage.py bitbake: bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly 2012-10-24 21:13:07 +01:00
runningbuild.py bitbake: hob/runningbuild: Add missing logging level argument 2012-09-27 16:45:26 +01:00
sanitycheckpage.py bitbake: Add missing file from previous commit 2012-09-28 09:56:26 +01:00
template.py bitbake: hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORS 2012-09-27 16:45:25 +01:00
utils.py ui/crumbs/utils.py: import module bb 2012-06-08 12:13:16 +01:00