summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-09 22:13:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:05:21 +0100
commit655476f9d1ea5c81493e16335a4fb42cc898383d (patch)
tree6f6b379236cf55824ec82f19d0ac032dd0b199fa
parentc5964a79c7ec74cabd81bf476ea844d5af361119 (diff)
downloadpoky-655476f9d1ea5c81493e16335a4fb42cc898383d.tar.gz
poky-655476f9d1ea5c81493e16335a4fb42cc898383d.tar.bz2
poky-655476f9d1ea5c81493e16335a4fb42cc898383d.zip
Hob: clean up cancel_build()
(Bitbake rev: ef441d51700f73577e72c106ee2a0ecd4eceda08) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 8529b05848..10f1ff32c0 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -384,6 +384,9 @@ class Builder(gtk.Window):
def request_package_info_async(self):
self.handler.request_package_info()
+ def cancel_build_sync(self, force=False):
+ self.handler.cancel_build(force)
+
def load_template(self, path):
self.template = TemplateMgr()
self.template.load(path)
@@ -1041,6 +1044,6 @@ class Builder(gtk.Window):
if response != gtk.RESPONSE_CANCEL:
self.stopping = True
if response == gtk.RESPONSE_OK:
- self.handler.cancel_build()
+ self.cancel_build_sync()
elif response == gtk.RESPONSE_YES:
- self.handler.cancel_build(True)
+ self.cancel_build_sync(True)