aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-07-14 23:36:51 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-09-15 19:23:59 -0700
commitdf9ebc20e08cd18130e175d7ffb45ad6bf2ba911 (patch)
tree711a8c49f7299011265937f03ee91cc9d8a92ab2
parent6f49ee1c3fac0a39d8976d7c74000ad507031516 (diff)
downloadopenembedded-core-contrib-rbt/resend.tar.gz
openembedded-core-contrib-rbt/resend.tar.bz2
openembedded-core-contrib-rbt/resend.zip
insane.bbclass: make package_qa_clean_path return a relative pathrbt/resend
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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-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 943ada83c8..628b63fd23 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -166,7 +166,7 @@ def package_qa_get_machine_dict():
def package_qa_clean_path(path,d):
""" Remove the common prefix from the path. In this case it is the TMPDIR"""
- return path.replace(d.getVar('TMPDIR',True),"")
+ return path.replace(d.getVar("TMPDIR", True) + "/", "")
def package_qa_write_error(type, error, d):
logfile = d.getVar('QA_LOGFILE', True)