* [PATCH] build.py: augment TaskBase to capture PN and PV
@ 2020-01-22 17:26 Chris Laplante
0 siblings, 0 replies; only message in thread
From: Chris Laplante @ 2020-01-22 17:26 UTC (permalink / raw)
To: bitbake-devel
PF is already captured, but it's a pain to try to parse out PN and PV,
which can be helpful to have available.
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
lib/bb/build.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/bb/build.py b/lib/bb/build.py
index b6d23e6..23b6ee4 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -65,6 +65,8 @@ class TaskBase(event.Event):
self.taskname = self._task
self.logfile = logfile
self.time = time.time()
+ self.pn = d.getVar("PN")
+ self.pv = d.getVar("PV")
event.Event.__init__(self)
self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName())
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-22 17:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 17:26 [PATCH] build.py: augment TaskBase to capture PN and PV Chris Laplante
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.