]> code.ossystems Code Review - openembedded-core.git/commitdiff
report-error: Fix tracebacks
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Aug 2016 17:05:24 +0000 (18:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2016 09:23:35 +0000 (10:23 +0100)
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>
meta/classes/report-error.bbclass

index c8c15bdafa4b644e112b259944c8f907fce6f79b..5bb231efc1f9d2054335618b6344c7daccf5bada 100644 (file)
@@ -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")