On 05/08/2017 08:36 AM, Patrick Ohly wrote:
> On Mon, 2017-02-20 at 15:12 -0600, Aníbal Limón wrote:
>> +    try:
>> +        ldata = bb.parse.handle(lconf, ldata, include=True)
>> +    except BaseException as exc:
>> +        raise LayerError(exc)
> 
> Anibal, where is this LayerError class in compatlayer/__init__.py
> supposed to come from? It doesn't get imported, leading to:
> 
>   File
> "/fast/work/intel-iot-refkit/openembedded-core/scripts/lib/compatlayer/__init__.py",
>  line 45, in _get_layer_collections
>     raise LayerError(exc)
> NameError: name 'LayerError' is not defined

This code is based on kergoth ones from oe-tests-scripts [1], i forget
to include the definition sorry for that but only extends exception to
determine if there is a problem on parsing the layer conf.

        Anibal


[1]
https://github.com/kergoth/oe-test-scripts/blob/726fef692c7464932c2ded0fab22a875df78a31f/bb-determine-layers#L111

> 

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to