]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane.bbclass: make package_qa_clean_path return a relative path rbt/buildpath
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jul 2015 06:36:51 +0000 (23:36 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jul 2015 09:15:09 +0000 (02:15 -0700)
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>
meta/classes/insane.bbclass

index f1eb60aec46fff2fc0e5d81525849dbcd3a01da8..529068620c1e8c8efac81f906888c26635fcaca7 100644 (file)
@@ -161,7 +161,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)