Skip to content
Commit 4c10ee95 authored by Marta Rybczynska's avatar Marta Rybczynska Committed by Steve Sakoman
Browse files

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: default avatarMarta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f1b7877a)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent c8a0e7ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment