mirror of
https://git.yoctoproject.org/poky
synced 2026-02-13 12:13:02 +01:00
cve-check: fix return type in check_cves
Make empty return types in check_cvs the same for all code paths. (From OE-Core rev: f86393c93dec47b24e837d0c4c5761a716ecdbb6) Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3b26027a00
commit
2916a71be2
@@ -264,7 +264,7 @@ def check_cves(d, patched_cves):
|
||||
products = d.getVar("CVE_PRODUCT").split()
|
||||
# If this has been unset then we're not scanning for CVEs here (for example, image recipes)
|
||||
if not products:
|
||||
return ([], [], [], {})
|
||||
return ([], [], [], [])
|
||||
pv = d.getVar("CVE_VERSION").split("+git")[0]
|
||||
|
||||
# If the recipe has been skipped/ignored we return empty lists
|
||||
|
||||
Reference in New Issue
Block a user