diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-10 16:53:19 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-10 17:12:27 -0700 |
commit | c51ed5d7a9971fad6019dac6c35a71b8a54ab16a (patch) | |
tree | fc8009860ab957bd86c6fb07dfd53bd6e94ff696 /lib/bb/ui/depexp.py | |
parent | d9e8b8af308ae871efdc8ef0782be30af8c1f894 (diff) | |
download | bitbake-c51ed5d7a9971fad6019dac6c35a71b8a54ab16a.tar.gz |
Rename command events, adjust compareRevisions
- Moved the logic for comparing revisions from cooker into command
- Removed 'Cooker' from the event names
- Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to
be a subclass of CommandExit
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/depexp.py')
-rw-r--r-- | lib/bb/ui/depexp.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/bb/ui/depexp.py b/lib/bb/ui/depexp.py index f0297a3bc..967f30790 100644 --- a/lib/bb/ui/depexp.py +++ b/lib/bb/ui/depexp.py @@ -21,6 +21,8 @@ import gobject import gtk import threading import xmlrpclib +import bb +import bb.event from bb.ui.crumbs.progress import ProgressBar # Package Model @@ -236,11 +238,13 @@ def main(server, eventHandler): parse(event._depgraph, dep.pkg_model, dep.depends_model) gtk.gdk.threads_leave() - if isinstance(event, bb.command.CookerCommandCompleted): + if isinstance(event, bb.command.CommandCompleted): continue - if isinstance(event, bb.command.CookerCommandFailed): + if isinstance(event, bb.command.CommandFailed): print("Command execution failed: %s" % event.error) - break + return event.exitcode + if isinstance(event, bb.command.CommandExit): + return event.exitcode if isinstance(event, bb.cooker.CookerExit): break |