diff options
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 2cb8cc0abf..67729445a9 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -179,9 +179,14 @@ def package_qa_get_machine_dict(d): | |||
179 | return machdata | 179 | return machdata |
180 | 180 | ||
181 | 181 | ||
182 | def package_qa_clean_path(path,d): | 182 | def package_qa_clean_path(path, d, pkg=None): |
183 | """ Remove the common prefix from the path. In this case it is the TMPDIR""" | 183 | """ |
184 | return path.replace(d.getVar("TMPDIR", True) + "/", "") | 184 | Remove redundant paths from the path for display. If pkg isn't set then |
185 | TMPDIR is stripped, otherwise PKGDEST/pkg is stripped. | ||
186 | """ | ||
187 | if pkg: | ||
188 | path = path.replace(os.path.join(d.getVar("PKGDEST", True), pkg), "/") | ||
189 | return path.replace(d.getVar("TMPDIR", True), "/").replace("//", "/") | ||
185 | 190 | ||
186 | def package_qa_write_error(type, error, d): | 191 | def package_qa_write_error(type, error, d): |
187 | logfile = d.getVar('QA_LOGFILE', True) | 192 | logfile = d.getVar('QA_LOGFILE', True) |