mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02: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: 2fc716ad75dcc59000dcc18143f06bcdf43be242) Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f86393c93dec47b24e837d0c4c5761a716ecdbb6) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
34eecaa053
commit
50ee11d88f
@@ -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