diff options
-rw-r--r-- | meta/classes/report-error.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index 5cbf8f07fd..c8c15bdafa 100644 --- a/meta/classes/report-error.bbclass +++ b/meta/classes/report-error.bbclass | |||
@@ -59,9 +59,11 @@ python errorreport_handler () { | |||
59 | logFile = codecs.open(log, 'r', 'utf-8') | 59 | logFile = codecs.open(log, 'r', 'utf-8') |
60 | logdata = logFile.read() | 60 | logdata = logFile.read() |
61 | 61 | ||
62 | topdir = e.data.getVar('TOPDIR', True) | 62 | # Replace host-specific paths so the logs are cleaner |
63 | if topdir: | 63 | for d in ("TOPDIR", "TMPDIR"): |
64 | logdata = logdata.replace(topdir, ' ') | 64 | s = e.data.getVar(d, True) |
65 | if s: | ||
66 | logdata = logdata.replace(s, d) | ||
65 | 67 | ||
66 | logFile.close() | 68 | logFile.close() |
67 | except: | 69 | except: |