]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: make package_qa_clean_path return a relative path
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 16 Sep 2015 02:28:48 +0000 (19:28 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Sep 2015 21:07:20 +0000 (22:07 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 72120f5068444b737a917f6ac6b40a7f0a8f38df..05e31a74eba0f6846b3b2de5bb2481cb56bc23ac 100644 (file)
@@ -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)