summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo.Ribeiro <Angelo.Ribeiro@criticaltechworks.com>2024-12-23 16:24:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-28 10:57:00 +0000
commitdc35ea04cebf815ede80529039fbe7e82cea46c3 (patch)
tree183dd8ac7a91f2504a5ac6cecd4846f3d04cd3f8
parent25520303d9f64f574f3c8c4740781211cb34c18a (diff)
downloadpoky-dc35ea04cebf815ede80529039fbe7e82cea46c3.tar.gz
report-error: Add PN to error report file
Extracting the PN out of the PF value is not allways trivial. For example when PE is set the package name will have the PE value before the '_' that clearly makes the division between name and version. Other packages include a number in their naming separated by a '-', for example mozjs-115 and openjdk-17. (From OE-Core rev: a2d54fa0c5ade523edf6be9105c6e943824988fa) Signed-off-by: Angelo Ribeiro <ribeiro.angelo224@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/report-error.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 1452513a66..2b880c8b0c 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -81,6 +81,7 @@ python errorreport_handler () {
81 task = e.task 81 task = e.task
82 taskdata={} 82 taskdata={}
83 log = e.data.getVar('BB_LOGFILE') 83 log = e.data.getVar('BB_LOGFILE')
84 taskdata['recipe'] = e.data.expand("${PN}")
84 taskdata['package'] = e.data.expand("${PF}") 85 taskdata['package'] = e.data.expand("${PF}")
85 taskdata['task'] = task 86 taskdata['task'] = task
86 if log: 87 if log: