]> code.ossystems Code Review - openembedded-core.git/commitdiff
checklayer: remove reference to undefined class
authorAnuj Mittal <anuj.mittal@intel.com>
Thu, 15 Mar 2018 05:59:51 +0000 (13:59 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Mar 2018 14:06:25 +0000 (15:06 +0100)
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/checklayer/__init__.py

index 63952616ba46570a3a96d093ea06cfe8f79d252d..288c457822dbf9e0ab83267582606ee958e33f73 100644 (file)
@@ -42,8 +42,8 @@ def _get_layer_collections(layer_path, lconf=None, data=None):
     ldata.setVar('LAYERDIR', layer_path)
     try:
         ldata = bb.parse.handle(lconf, ldata, include=True)
-    except BaseException as exc:
-        raise LayerError(exc)
+    except:
+        raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path)
     ldata.expandVarref('LAYERDIR')
 
     collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split()