summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index ff4da78cdb..c5368f63be 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1251,6 +1251,16 @@ class BuildInfoHelper(object):
1251 1251
1252 1252
1253 1253
1254 def cancel_cli_build(self):
1255 """
1256 If a build is currently underway, set its state to CANCELLED;
1257 note that this only gets called for command line builds which are
1258 interrupted, so it doesn't touch any BuildRequest objects
1259 """
1260 build = self.internal_state['build']
1261 if build:
1262 build.outcome = Build.CANCELLED
1263 build.save()
1254 1264
1255 def store_dependency_information(self, event): 1265 def store_dependency_information(self, event):
1256 assert '_depgraph' in vars(event) 1266 assert '_depgraph' in vars(event)