diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2018-03-15 13:59:51 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-20 09:59:31 +0000 |
commit | c37053857d634a9185aaaf513fd96d3e4a735c2c (patch) | |
tree | 71e78734517149e800a665d6236a949c826f7046 /scripts/lib/checklayer/__init__.py | |
parent | cef09e9c0e2701d9c77c40caabe0b521a87ddb35 (diff) | |
download | poky-c37053857d634a9185aaaf513fd96d3e4a735c2c.tar.gz |
checklayer: remove reference to undefined class
LayerError doesn't exist and will lead to an error when this failure
code path is hit.
(From OE-Core rev: 7780482772d005c77825dc3e99e63f00911156bf)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/checklayer/__init__.py')
-rw-r--r-- | scripts/lib/checklayer/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index 63952616ba..288c457822 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py | |||
@@ -42,8 +42,8 @@ def _get_layer_collections(layer_path, lconf=None, data=None): | |||
42 | ldata.setVar('LAYERDIR', layer_path) | 42 | ldata.setVar('LAYERDIR', layer_path) |
43 | try: | 43 | try: |
44 | ldata = bb.parse.handle(lconf, ldata, include=True) | 44 | ldata = bb.parse.handle(lconf, ldata, include=True) |
45 | except BaseException as exc: | 45 | except: |
46 | raise LayerError(exc) | 46 | raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path) |
47 | ldata.expandVarref('LAYERDIR') | 47 | ldata.expandVarref('LAYERDIR') |
48 | 48 | ||
49 | collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split() | 49 | collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split() |