diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-20 15:21:27 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-20 15:41:58 +0000 |
commit | 65d3f55925e42b0d5941bf17809b9fecdd6598a6 (patch) | |
tree | 74505e81deaedc4ee35c4aab5a1a36f2a42c51b3 /layerindex/update.py | |
parent | cb5ce087c25862b9cb172ef65530d20fe94bc8e6 (diff) | |
download | openembedded-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-x | layerindex/update.py | 5 |
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 |