update.py: explicitly check for existence of conf/layer.conf

Rather than letting BitBake error out, just check for existence of this
file and print a single error line if it doesn't exist.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-03-20 15:21:27 +00:00
parent cb5ce087c2
commit 65d3f55925

View File

@ -362,6 +362,11 @@ def main():
transaction.rollback() transaction.rollback()
continue continue
if not os.path.exists(os.path.join(layerdir, 'conf/layer.conf')):
logger.error("conf/layer.conf not found for layer %s - is subdirectory set correctly?" % layer.name)
transaction.rollback()
continue
logger.info("Collecting data for layer %s on branch %s" % (layer.name, options.branch)) logger.info("Collecting data for layer %s on branch %s" % (layer.name, options.branch))
# Parse layer.conf files for this layer and its dependencies # Parse layer.conf files for this layer and its dependencies