report-error: Fix tracebacks
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. (From OE-Core rev: 684a3d56ef393b56f38d3272f8865f6225a282ab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fbc144d08f
commit
a18e3c92e9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue