]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane.bbclass: make package_qa_clean_path return a relative path rbt/resend
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jul 2015 06:36:51 +0000 (23:36 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 16 Sep 2015 02:23:59 +0000 (19:23 -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 943ada83c8be6760f6636c503bc81128d4fb5ccf..628b63fd23e299872b899835b42e3c540ea24889 100644 (file)
@@ -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)