]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: hook cleanup to the BuildCompleted event, not CookerExit
authorRoss Burton <ross.burton@arm.com>
Wed, 29 Jun 2022 15:15:19 +0000 (16:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Jun 2022 09:26:48 +0000 (10:26 +0100)
commitfccdcfd301de281a427bfee48d8ff47fa07b7259
tree4e211b5167ca956b8fee7438767e1e2e5c44ce80
parentb40dd920f8b40eabe78db363249257818c63c074
cve-check: hook cleanup to the BuildCompleted event, not CookerExit

The cve-check class writes temporary files to preserve state across the
build, and cleans them up in a CookerExit handler.

However, in memory-resident builds the cooker won't exit in between
builds, so the state isn't cleared and the CVE report generation fails:

NOTE: Generating JSON CVE summary
ERROR: Error adding the same package twice

Easily solved by hooking to BuildCompleted, instead of CookerExit.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass