diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-02-25 16:16:42 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-02-26 11:04:43 +0000 |
commit | b47400c38dd6a1a7a92add47bfdb4ae02515dc2e (patch) | |
tree | e70876ea5bd7b1418d304e1599363ac18f3d55af /layerindex/update.py | |
parent | b3003840e6531ebc37afcd7423006c38fb0f4069 (diff) | |
download | openembedded-core-contrib-b47400c38dd6a1a7a92add47bfdb4ae02515dc2e.tar.gz |
Don't stop parsing layer on fatal error in update script
"Fatal" errors during parsing a single recipe (such as finding legacy
staging) shouldn't stop us from parsing the rest of the layer. To do
this we need to catch BaseException instead of Exception as fatal errors
end up calling sys.exit.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-x | layerindex/update.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layerindex/update.py b/layerindex/update.py index a8129dd4bc..97f8ccbee8 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -95,7 +95,9 @@ def update_recipe_file(data, path, recipe): recipe.section = envdata.getVar("SECTION", True) recipe.license = envdata.getVar("LICENSE", True) recipe.homepage = envdata.getVar("HOMEPAGE", True) - except Exception as e: + except KeyboardInterrupt: + raise + except BaseException as e: logger.info("Unable to read %s: %s", fn, str(e)) def update_machine_conf_file(path, machine): |