sanity: display the parsed PATH when complaining about CWD elements
Many people don't understand the nuances of PATH, so help them by clarifying the warning and displaying the parsed PATH element-by-element. (From OE-Core rev: 47e6ab41f0f84e6bed7d337ebf96c954ec6909e8) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
63acb556f6
commit
856019774b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue