[bitbake-devel] [PATCH 1/3] build: Create package property for TaskBase
Tomasz Meresiński
tomasz.meresinski at comarch.pl
Mon Oct 29 16:39:31 UTC 2018
Before this commit we had private _package member in TaskBase.
Create public property exposing it.
Signed-off-by: Tomasz Meresiński <tomasz.meresinski at comarch.com>
---
lib/bb/build.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 3e2a94ed..d1eaf4da 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -104,10 +104,17 @@ class TaskBase(event.Event):
def setTask(self, task):
self._task = task
+ def getPackage(self):
+ return self._package
+
+ def setPackage(self, package):
+ self._package = package
+
def getDisplayName(self):
return bb.event.getName(self)[4:]
task = property(getTask, setTask, None, "task property")
+ package = property(getPackage, setPackage, doc="package name of this task")
class TaskStarted(TaskBase):
"""Task execution started"""
@@ -181,7 +188,7 @@ class LogTee(object):
#
# pythonexception allows the python exceptions generated to be raised
-# as the real exceptions (not FuncFailed) and without a backtrace at the
+# as the real exceptions (not FuncFailed) and without a backtrace at the
# origin of the failure.
#
def exec_func(func, d, dirs = None, pythonexception=False):
--
2.17.1
More information about the bitbake-devel
mailing list