summaryrefslogtreecommitdiffstats
path: root/meta/classes/report-error.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/report-error.bbclass')
-rw-r--r--meta/classes/report-error.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 11eee9bdc5..cabd98cc32 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -32,11 +32,11 @@ python errorreport_handler () {
32 if isinstance(e, bb.event.BuildStarted): 32 if isinstance(e, bb.event.BuildStarted):
33 bb.utils.mkdirhier(logpath) 33 bb.utils.mkdirhier(logpath)
34 data = {} 34 data = {}
35 machine = e.data.getVar("MACHINE", False) 35 machine = e.data.getVar("MACHINE", True)
36 data['machine'] = machine 36 data['machine'] = machine
37 data['build_sys'] = e.data.getVar("BUILD_SYS", True) 37 data['build_sys'] = e.data.getVar("BUILD_SYS", True)
38 data['nativelsb'] = e.data.getVar("NATIVELSBSTRING", False) 38 data['nativelsb'] = e.data.getVar("NATIVELSBSTRING", True)
39 data['distro'] = e.data.getVar("DISTRO", False) 39 data['distro'] = e.data.getVar("DISTRO", True)
40 data['target_sys'] = e.data.getVar("TARGET_SYS", True) 40 data['target_sys'] = e.data.getVar("TARGET_SYS", True)
41 data['failures'] = [] 41 data['failures'] = []
42 data['component'] = e.getPkgs()[0] 42 data['component'] = e.getPkgs()[0]
@@ -73,7 +73,7 @@ python errorreport_handler () {
73 bb.utils.unlockfile(lock) 73 bb.utils.unlockfile(lock)
74 failures = jsondata['failures'] 74 failures = jsondata['failures']
75 if(len(failures) > 0): 75 if(len(failures) > 0):
76 filename = "error_report_" + e.data.getVar("BUILDNAME", False)+".txt" 76 filename = "error_report_" + e.data.getVar("BUILDNAME", True)+".txt"
77 datafile = errorreport_savedata(e, jsondata, filename) 77 datafile = errorreport_savedata(e, jsondata, filename)
78 bb.note("The errors for this build are stored in %s\nYou can send the errors to a reports server by running:\n send-error-report %s [-s server]" % (datafile, datafile)) 78 bb.note("The errors for this build are stored in %s\nYou can send the errors to a reports server by running:\n send-error-report %s [-s server]" % (datafile, datafile))
79 bb.note("The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.") 79 bb.note("The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.")