]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity: display the parsed PATH when complaining about CWD elements
authorRoss Burton <ross.burton@intel.com>
Wed, 18 Jul 2012 13:42:30 +0000 (14:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Jul 2012 13:46:36 +0000 (14:46 +0100)
Many people don't understand the nuances of PATH, so help them by clarifying
the warning and displaying the parsed PATH element-by-element.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index a3fe075dee472a0605e9172cf9eb9db69b1b2ce1..630e0e3d6e9c57e23ff654a14b4f0b51a005d0ec 100644 (file)
@@ -390,7 +390,8 @@ def check_sanity(sanity_data):
 
     paths = sanity_data.getVar('PATH', True).split(":")
     if "." in paths or "" in paths:
-        messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
+        messages = messages + "PATH contains '.' or '' (empty element), which will break the build, please remove this.\n"
+        messages = messages + "Parsed PATH is " + str(paths) + "\n"
 
     bbpaths = sanity_data.getVar('BBPATH', True).split(":")
     if "." in bbpaths or "" in bbpaths: