summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-15 19:28:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-24 17:54:26 +0100
commitdd26efba0616e253466c1f5a83775e3079f3e9be (patch)
tree94f32cd14d7dea86421078b34d10845bc1c238c1 /meta/classes
parentbdbd8b4fef2638098716f032f2f5e485873770c2 (diff)
downloadpoky-dd26efba0616e253466c1f5a83775e3079f3e9be.tar.gz
insane.bbclass: make package_qa_clean_path return a relative path
Make package_qa_clean_path() return something like "work/path/to/file" rather than "/work/path/to/file", the relative path is a little clear. (From OE-Core rev: 67a1e4b087a39db04370685616d5b439b0f2b505) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 72120f5068..05e31a74eb 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -167,7 +167,7 @@ def package_qa_get_machine_dict():
167 167
168def package_qa_clean_path(path,d): 168def package_qa_clean_path(path,d):
169 """ Remove the common prefix from the path. In this case it is the TMPDIR""" 169 """ Remove the common prefix from the path. In this case it is the TMPDIR"""
170 return path.replace(d.getVar('TMPDIR',True),"") 170 return path.replace(d.getVar("TMPDIR", True) + "/", "")
171 171
172def package_qa_write_error(type, error, d): 172def package_qa_write_error(type, error, d):
173 logfile = d.getVar('QA_LOGFILE', True) 173 logfile = d.getVar('QA_LOGFILE', True)