* [PATCH] report-error: Fix tracebacks
@ 2016-08-15 17:05 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-08-15 17:05 UTC (permalink / raw)
To: openembedded-core
Currently the code gives tracebacks if there are no recipes to be built in a
BuildStarted event. Parse the list into a string rather than just taking the
first item. There is nothing special about the first time.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index c8c15bd..5bb231e 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -42,7 +42,7 @@ python errorreport_handler () {
data['distro'] = e.data.getVar("DISTRO", True)
data['target_sys'] = e.data.getVar("TARGET_SYS", True)
data['failures'] = []
- data['component'] = e.getPkgs()[0]
+ data['component'] = " ".join(e.getPkgs())
data['branch_commit'] = str(base_detect_branch(e.data)) + ": " + str(base_detect_revision(e.data))
lock = bb.utils.lockfile(datafile + '.lock')
errorreport_savedata(e, data, "error-report.txt")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-15 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-15 17:05 [PATCH] report-error: Fix tracebacks Richard Purdie
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.