aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 15:21:27 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 15:41:58 +0000
commit65d3f55925e42b0d5941bf17809b9fecdd6598a6 (patch)
tree74505e81deaedc4ee35c4aab5a1a36f2a42c51b3 /layerindex/update.py
parentcb5ce087c25862b9cb172ef65530d20fe94bc8e6 (diff)
downloadopenembedded-core-contrib-65d3f55925e42b0d5941bf17809b9fecdd6598a6.tar.gz
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>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py
index 0fabcf6a5b..b788c107da 100755
--- a/layerindex/update.py
+++ b/layerindex/update.py
@@ -362,6 +362,11 @@ def main():
transaction.rollback()
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))
# Parse layer.conf files for this layer and its dependencies