diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-15 19:28:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 22:07:20 +0100 |
commit | 67a1e4b087a39db04370685616d5b439b0f2b505 (patch) | |
tree | 024426cfccd9488293082df00132fc04b9ddc748 /meta/classes | |
parent | 479c8eb6547c311123ea30c9f06f2d44c6365473 (diff) | |
download | openembedded-core-67a1e4b087a39db04370685616d5b439b0f2b505.tar.gz openembedded-core-67a1e4b087a39db04370685616d5b439b0f2b505.tar.bz2 openembedded-core-67a1e4b087a39db04370685616d5b439b0f2b505.zip |
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 72120f5068..05e31a74eb 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -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) |