From: Robert Yang Date: Wed, 15 Jul 2015 06:36:51 +0000 (-0700) Subject: insane.bbclass: make package_qa_clean_path return a relative path X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1093e79e1f14f87357657d1a1e473d3325caf22;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index f1eb60aec46..529068620c1 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -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)