From: Markus Lehtonen Date: Thu, 26 May 2016 08:05:43 +0000 (+0300) Subject: cookerdata: print an error if layer dir does not exist X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c9689e4b492dc5821749e284e397d717af2a6c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 1615db5b175..dc34efefde8 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)