Re: [OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2017-01-05 Thread Markus Lehtonen
On 04/01/2017, 17.43, "Mariano Lopez" wrote: > >On 28/12/16 07:02, Markus Lehtonen wrote: >> -def dict_to_XML(tag, dictionary): >> +def dict_to_XML(tag, dictionary, **kwargs): >> """ Return XML element converting dicts recursively. """ >> >> -elem = Element(tag) >> +elem = Element(t

Re: [OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2017-01-04 Thread Mariano Lopez
On 28/12/16 07:02, Markus Lehtonen wrote: > -def dict_to_XML(tag, dictionary): > +def dict_to_XML(tag, dictionary, **kwargs): > """ Return XML element converting dicts recursively. """ > > -elem = Element(tag) > +elem = Element(tag, **kwargs) > for key, val in dictionary.items

[OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2016-12-28 Thread Markus Lehtonen
Have the layer name as an attribute instead of of the name of the element itself. That is, have instead of . A bit better XML design. [YOCTO #10590] Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/utils/metadata.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/me