瀏覽代碼

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>
Angelo.Ribeiro 5 月之前
父節點
當前提交
dc35ea04ce
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      meta/classes/report-error.bbclass

+ 1 - 0
meta/classes/report-error.bbclass

@@ -81,6 +81,7 @@ python errorreport_handler () {
             task = e.task
             taskdata={}
             log = e.data.getVar('BB_LOGFILE')
+            taskdata['recipe'] = e.data.expand("${PN}")
             taskdata['package'] = e.data.expand("${PF}")
             taskdata['task'] = task
             if log: