]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: write empty fragment files in the text mode
authorMarta Rybczynska <rybczynska@gmail.com>
Fri, 3 Jun 2022 12:17:10 +0000 (14:17 +0200)
committerSteve Sakoman <steve@sakoman.com>
Mon, 6 Jun 2022 15:32:51 +0000 (05:32 -1000)
commit79c02facd3f248122b4b7a6bd00192151e4a6406
treea5cb90729463553853057bfac3b996b574976cb0
parent66bf08f2df478a909a12756c650dcc2ae09a0a47
cve-check: write empty fragment files in the text mode

In the cve-check text mode output, we didn't write fragment
files if there are no CVEs (if CVE_CHECK_REPORT_PATCHED is 1),
or no unpached CVEs otherwise.

However, in a system after multiple builds,
cve_check_write_rootfs_manifest might find older files and use
them as current, what leads to incorrect reporting.

Fix it by always writing a fragment file, even if empty.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f1b7877acd0f6e3626faa57d9f89809cfcdfd0f1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass