summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cookerdata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 1615db5b17..dc34efefde 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -292,6 +292,10 @@ class CookerDataBuilder(object):
292 data = bb.data.createCopy(data) 292 data = bb.data.createCopy(data)
293 approved = bb.utils.approved_variables() 293 approved = bb.utils.approved_variables()
294 for layer in layers: 294 for layer in layers:
295 if not os.path.isdir(layer):
296 parselog.critical("Layer directory '%s' does not exist! "
297 "Please check BBLAYERS in %s" % (layer, layerconf))
298 sys.exit(1)
295 parselog.debug(2, "Adding layer %s", layer) 299 parselog.debug(2, "Adding layer %s", layer)
296 if 'HOME' in approved and '~' in layer: 300 if 'HOME' in approved and '~' in layer:
297 layer = os.path.expanduser(layer) 301 layer = os.path.expanduser(layer)