diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-15 18:05:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-17 10:23:35 +0100 |
commit | 684a3d56ef393b56f38d3272f8865f6225a282ab (patch) | |
tree | a62ac3190c6dc5b2b157529bfcf42a0d3a46d4aa /meta/classes/report-error.bbclass | |
parent | e0516960925e93f1801620897743b1cebcd806bc (diff) | |
download | openembedded-core-contrib-684a3d56ef393b56f38d3272f8865f6225a282ab.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/report-error.bbclass')
-rw-r--r-- | meta/classes/report-error.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index c8c15bdafa..5bb231efc1 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") |