Skip to contentSkip to conversation

report-error: Add PN to error report file

PATCH New Angelo Ribeiro 1 participant 1 message Dec 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 report-error: Add PN to error report file

From: "Angelo.Ribeiro" <[email protected]>

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.

---
 meta/classes/report-error.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/report-error.bbclass +1 -0
index 1452513a66..2b880c8b0c 100644
@@ -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:
Signature · 1 line
2.34.1