summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
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 /bitbake/lib/bb/ui
parentc5964a79c7ec74cabd81bf476ea844d5af361119 (diff)
downloadpoky-655476f9d1ea5c81493e16335a4fb42cc898383d.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/ui')
-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):
384 def request_package_info_async(self): 384 def request_package_info_async(self):
385 self.handler.request_package_info() 385 self.handler.request_package_info()
386 386
387 def cancel_build_sync(self, force=False):
388 self.handler.cancel_build(force)
389
387 def load_template(self, path): 390 def load_template(self, path):
388 self.template = TemplateMgr() 391 self.template = TemplateMgr()
389 self.template.load(path) 392 self.template.load(path)
@@ -1041,6 +1044,6 @@ class Builder(gtk.Window):
1041 if response != gtk.RESPONSE_CANCEL: 1044 if response != gtk.RESPONSE_CANCEL:
1042 self.stopping = True 1045 self.stopping = True
1043 if response == gtk.RESPONSE_OK: 1046 if response == gtk.RESPONSE_OK:
1044 self.handler.cancel_build() 1047 self.cancel_build_sync()
1045 elif response == gtk.RESPONSE_YES: 1048 elif response == gtk.RESPONSE_YES:
1046 self.handler.cancel_build(True) 1049 self.cancel_build_sync(True)