Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Ross Burton
On Thu, 10 Feb 2022 at 16:28, Marta Rybczynska wrote: >> This isn't part of the standard Python library, you'll have to >> replicate the logic. > > Do you mean copying part of the class or reimplementing it? Reimplement, unless it's so complicated that we need to embed a copy. As this is just

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Marta Rybczynska
On Thu, Feb 10, 2022 at 3:36 PM Ross Burton wrote: > > > +from jsonmerge import Merger > > This isn't part of the standard Python library, you'll have to > replicate the logic. > > Do you mean copying part of the class or reimplementing it? > One suggestion would be to move more of the

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Ross Burton
On Tue, 25 Jan 2022 at 09:59, Marta Rybczynska wrote: > Add an option to output the CVE check in a JSON-based format. > This format is easier to parse in software than the original > text-based one and allows post-processing by other tools. Nice, thanks. > +from jsonmerge import Merger

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-03 Thread Marta Rybczynska
On Tue, Jan 25, 2022 at 10:59 AM Marta Rybczynska via lists.openembedded.org wrote: > Add an option to output the CVE check in a JSON-based format. > This format is easier to parse in software than the original > text-based one and allows post-processing by other tools. > > Output formats are

[OE-core] [PATCH] cve-check: add json format

2022-01-25 Thread Marta Rybczynska
Add an option to output the CVE check in a JSON-based format. This format is easier to parse in software than the original text-based one and allows post-processing by other tools. Output formats are now handed by CVE_CHECK_FORMAT_TEXT and CVE_CHECK_FORMAT_JSON. Both of them are enabled by