diff options
Diffstat (limited to 'meta/classes/report-error.bbclass')
-rw-r--r-- | meta/classes/report-error.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index d6fdd364ad..1c55abfbf3 100644 --- a/meta/classes/report-error.bbclass +++ b/meta/classes/report-error.bbclass | |||
@@ -29,6 +29,13 @@ python errorreport_handler () { | |||
29 | import json | 29 | import json |
30 | import codecs | 30 | import codecs |
31 | 31 | ||
32 | def nativelsb(): | ||
33 | nativelsbstr = e.data.getVar("NATIVELSBSTRING") | ||
34 | # provide a bit more host info in case of uninative build | ||
35 | if e.data.getVar('UNINATIVE_URL') != 'unset': | ||
36 | return '/'.join([nativelsbstr, lsb_distro_identifier(e.data)]) | ||
37 | return nativelsbstr | ||
38 | |||
32 | logpath = e.data.getVar('ERR_REPORT_DIR') | 39 | logpath = e.data.getVar('ERR_REPORT_DIR') |
33 | datafile = os.path.join(logpath, "error-report.txt") | 40 | datafile = os.path.join(logpath, "error-report.txt") |
34 | 41 | ||
@@ -38,7 +45,7 @@ python errorreport_handler () { | |||
38 | machine = e.data.getVar("MACHINE") | 45 | machine = e.data.getVar("MACHINE") |
39 | data['machine'] = machine | 46 | data['machine'] = machine |
40 | data['build_sys'] = e.data.getVar("BUILD_SYS") | 47 | data['build_sys'] = e.data.getVar("BUILD_SYS") |
41 | data['nativelsb'] = e.data.getVar("NATIVELSBSTRING") | 48 | data['nativelsb'] = nativelsb() |
42 | data['distro'] = e.data.getVar("DISTRO") | 49 | data['distro'] = e.data.getVar("DISTRO") |
43 | data['target_sys'] = e.data.getVar("TARGET_SYS") | 50 | data['target_sys'] = e.data.getVar("TARGET_SYS") |
44 | data['failures'] = [] | 51 | data['failures'] = [] |