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-26 15:07:12 +0100 |
commit | 9e5d96c2abe4e2210355ab9e9b9efce0a9f91228 (patch) | |
tree | f6c194f9e5ac2e5cc6612f37474e1329b7df99c0 | |
parent | e22a534bae7deec6185bbf4d58cd491b8e6e647e (diff) | |
download | poky-9e5d96c2abe4e2210355ab9e9b9efce0a9f91228.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)
(From OE-Core rev: d06cf17109a2ca310c270ce4a27a15cb6190e2ff)
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() |