[oe-commits] [bitbake] branch master-next updated: build.py: augment TaskBase to capture PN and PV

git at git.openembedded.org git at git.openembedded.org
Fri Mar 6 17:29:51 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
     new 2885034  build.py: augment TaskBase to capture PN and PV
2885034 is described below

commit 2885034f42a1dce7586e081a0461b8932a3593bf
Author: Chris Laplante <chris.laplante at agilent.com>
AuthorDate: Wed Jan 22 12:26:04 2020 -0500

    build.py: augment TaskBase to capture PN and PV
    
    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 at agilent.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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())
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list