[oe-commits] [bitbake] 01/03: cookerdata: print an error if layer dir does not exist
git at git.openembedded.org
git at git.openembedded.org
Thu Jun 2 21:15:33 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 32c9689e4b492dc5821749e284e397d717af2a6c
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Thu May 26 11:05:43 2016 +0300
cookerdata: print an error if layer dir does not exist
Makes it easier for user to identify problems, e.g. typos, in BBLAYERS.
[YOCTO #9507]
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cookerdata.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 1615db5..dc34efe 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -292,6 +292,10 @@ class CookerDataBuilder(object):
data = bb.data.createCopy(data)
approved = bb.utils.approved_variables()
for layer in layers:
+ if not os.path.isdir(layer):
+ parselog.critical("Layer directory '%s' does not exist! "
+ "Please check BBLAYERS in %s" % (layer, layerconf))
+ sys.exit(1)
parselog.debug(2, "Adding layer %s", layer)
if 'HOME' in approved and '~' in layer:
layer = os.path.expanduser(layer)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list