mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
bdbd8b4fef
commit
dd26efba06
@@ -167,7 +167,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)
|
||||
|
||||
Reference in New Issue
Block a user