summaryrefslogtreecommitdiff
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-07-18 14:42:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-18 14:46:36 +0100
commit47e6ab41f0f84e6bed7d337ebf96c954ec6909e8 (patch)
treea81ae4376f715bb49ed2aff70aa96b9b2e70c76e /meta/classes/sanity.bbclass
parentb01b958007b2c09e68a839415440972e08275702 (diff)
downloadopenembedded-core-47e6ab41f0f84e6bed7d337ebf96c954ec6909e8.tar.gz
openembedded-core-47e6ab41f0f84e6bed7d337ebf96c954ec6909e8.tar.bz2
openembedded-core-47e6ab41f0f84e6bed7d337ebf96c954ec6909e8.zip
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. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a3fe075dee..630e0e3d6e 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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: